Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean Michel-Lemieux2003-09-05 14:07:09 -0400
committerJean Michel-Lemieux2003-09-05 14:07:09 -0400
commit76857104d21ea283fd4dd5e861beeb83497068cd (patch)
tree7c344a46039fe97763075ccf7350505cd301a652
parentebe068fe99dbae9e62c616486c82564d30b3b5fe (diff)
downloadeclipse.platform.team-76857104d21ea283fd4dd5e861beeb83497068cd.tar.gz
eclipse.platform.team-76857104d21ea283fd4dd5e861beeb83497068cd.tar.xz
eclipse.platform.team-76857104d21ea283fd4dd5e861beeb83497068cd.zip
Fixed NPE in getOverlay()
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSLightweightDecorator.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSLightweightDecorator.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSLightweightDecorator.java
index e2dac2a9d..a63e83bb7 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSLightweightDecorator.java
+++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSLightweightDecorator.java
@@ -398,7 +398,8 @@ public class CVSLightweightDecorator
// check if the folder is local diectory with no remote
ICVSFolder cvsFolder = CVSWorkspaceRoot.getCVSFolderFor((IContainer)resource);
try {
- if (cvsFolder.getFolderSyncInfo().getRepository().equals(FolderSyncInfo.VIRTUAL_DIRECTORY)) {
+ FolderSyncInfo folderSyncInfo = cvsFolder.getFolderSyncInfo();
+ if (folderSyncInfo != null && folderSyncInfo.getRepository().equals(FolderSyncInfo.VIRTUAL_DIRECTORY)) {
return noRemoteDir;
}
} catch (CVSException e) {

Back to the top