core/com.nokia.carbide.cpp.ui/src/com/nokia/carbide/cpp/internal/ui/images/FileImageModel.java
changeset 447 5018b19f0952
parent 446 8cd2a2915e7b
child 448 f67171885c66
--- a/core/com.nokia.carbide.cpp.ui/src/com/nokia/carbide/cpp/internal/ui/images/FileImageModel.java	Tue Aug 18 11:45:34 2009 -0500
+++ b/core/com.nokia.carbide.cpp.ui/src/com/nokia/carbide/cpp/internal/ui/images/FileImageModel.java	Tue Aug 18 11:47:39 2009 -0500
@@ -60,8 +60,8 @@
 				? basePath.append(filePath) : filePath;
 		}
 		
-		if (sourceLocation.getDevice() == null){
-			sourceLocation = sourceLocation.setDevice(basePath.getDevice());
+		if (this.sourceLocation != null && this.sourceLocation.getDevice() == null){
+			this.sourceLocation = this.sourceLocation.setDevice(basePath.getDevice());
 		}
 		
 	}