Fix possible NPE
authorEd Swartz <ed.swartz@nokia.com>
Mon, 12 Jul 2010 10:32:25 -0500
changeset 1607 36d484a2e680
parent 1606 32971633ac9f
child 1608 231c47d08fe4
Fix possible NPE
core/com.nokia.cpp.utils.core/src/com/nokia/cpp/internal/api/utils/core/ExternalFileInfoCache.java
--- a/core/com.nokia.cpp.utils.core/src/com/nokia/cpp/internal/api/utils/core/ExternalFileInfoCache.java	Mon Jul 12 10:30:21 2010 -0500
+++ b/core/com.nokia.cpp.utils.core/src/com/nokia/cpp/internal/api/utils/core/ExternalFileInfoCache.java	Mon Jul 12 10:32:25 2010 -0500
@@ -167,7 +167,7 @@
 		// update info
 		info.put(file, newInfo);
 		
-		return finfo.isChangedFrom(newInfo);
+		return finfo == null || finfo.isChangedFrom(newInfo);
 	}
 	
 	/**