extra null check for fix from bug 9642
authortimkelly
Tue, 18 Aug 2009 11:47:39 -0500
changeset 447 5018b19f0952
parent 446 8cd2a2915e7b
child 448 f67171885c66
extra null check for fix from bug 9642
core/com.nokia.carbide.cpp.ui/src/com/nokia/carbide/cpp/internal/ui/images/FileImageModel.java
--- 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());
 		}
 		
 	}