# HG changeset patch # User timkelly # Date 1250614059 18000 # Node ID 5018b19f09528ebfe03d365207838716cbf75cbf # Parent 8cd2a2915e7bb4e358d0e01ef4853c9e350af970 extra null check for fix from bug 9642 diff -r 8cd2a2915e7b -r 5018b19f0952 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()); } }