applayerprotocols/httptransportfw/core/CHeaderField.cpp
changeset 23 ea9c9681bbaf
parent 0 b16258d2340f
--- a/applayerprotocols/httptransportfw/core/CHeaderField.cpp	Thu May 27 13:21:53 2010 +0300
+++ b/applayerprotocols/httptransportfw/core/CHeaderField.cpp	Fri Jun 11 14:06:05 2010 +0300
@@ -1,4 +1,4 @@
-// Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
+// Copyright (c) 2003-2010 Nokia Corporation and/or its subsidiary(-ies).
 // All rights reserved.
 // This component and the accompanying materials are made available
 // under the terms of "Eclipse Public License v1.0"
@@ -118,7 +118,9 @@
 	if ((aIndex < NumPartsL()) && (aIndex >= 0))
 		return iParts[aIndex];
 	else
-		return NULL;
+		User::Leave(KErrNotFound);
+	
+	return NULL;
 	}
 
 EXPORT_C