summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Kucera2013-05-15 15:55:55 (EDT)
committerChris Recoskie2013-05-15 15:55:55 (EDT)
commit23060eae86c4ec4b7a73256e7bb793d03c825d43 (patch)
treead67525b43626a3b6dccc072c1f1176768ed6b30
parent3815d0dd97184a4adc7eb705c402a7fb63458db2 (diff)
downloadorg.eclipse.ptp-23060eae86c4ec4b7a73256e7bb793d03c825d43.zip
org.eclipse.ptp-23060eae86c4ec4b7a73256e7bb793d03c825d43.tar.gz
org.eclipse.ptp-23060eae86c4ec4b7a73256e7bb793d03c825d43.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());