summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Kucera2013-05-15 15:55:55 (EDT)
committerChris Recoskie2013-05-15 16:00:02 (EDT)
commit3675aa846d02974a5cd047e480182ccd5e0ccad2 (patch)
tree3922cd9cdefb5960562b2bf46194c03fe0287e03
parent4ed2df5de3be77059c2e39f3940163b2c7a4ee7e (diff)
downloadorg.eclipse.ptp-3675aa846d02974a5cd047e480182ccd5e0ccad2.zip
org.eclipse.ptp-3675aa846d02974a5cd047e480182ccd5e0ccad2.tar.gz
org.eclipse.ptp-3675aa846d02974a5cd047e480182ccd5e0ccad2.tar.bz2
Bug 408158 - NPE in RemoteInactiveHighlightingService
-rw-r--r--rdt/org.eclipse.ptp.rdt.ui/src/org/eclipse/ptp/internal/rdt/ui/editor/RemoteInactiveHighlightingService.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/rdt/org.eclipse.ptp.rdt.ui/src/org/eclipse/ptp/internal/rdt/ui/editor/RemoteInactiveHighlightingService.java b/rdt/org.eclipse.ptp.rdt.ui/src/org/eclipse/ptp/internal/rdt/ui/editor/RemoteInactiveHighlightingService.java
index 2c0cad0..829abb4 100644
--- a/rdt/org.eclipse.ptp.rdt.ui/src/org/eclipse/ptp/internal/rdt/ui/editor/RemoteInactiveHighlightingService.java
+++ b/rdt/org.eclipse.ptp.rdt.ui/src/org/eclipse/ptp/internal/rdt/ui/editor/RemoteInactiveHighlightingService.java
@@ -39,6 +39,8 @@ public class RemoteInactiveHighlightingService extends AbstractRemoteService imp
public List<Position> computeInactiveHighlightingPositions(IDocument document, IWorkingCopy workingCopy) {
ICIndexSubsystem subsystem = getSubSystem();
+ if(subsystem == null)
+ return Collections.emptyList();
subsystem.checkProject(workingCopy.getCProject().getProject(), new NullProgressMonitor());