Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2004-03-01 14:45:33 +0000
committerMichael Valenta2004-03-01 14:45:33 +0000
commit9ba92683deacc3eff5ed25eca7a0565b216ccdc1 (patch)
treea6855c0a75aa694c86e3a77597b48687cca36a77
parent1a85307a06b32264c8b33ab08befd924c92b2ddf (diff)
downloadeclipse.platform.team-9ba92683deacc3eff5ed25eca7a0565b216ccdc1.tar.gz
eclipse.platform.team-9ba92683deacc3eff5ed25eca7a0565b216ccdc1.tar.xz
eclipse.platform.team-9ba92683deacc3eff5ed25eca7a0565b216ccdc1.zip
53185: [Decorators] NPE and SWTException while applying decorations
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSLightweightDecorator.java2
1 files changed, 2 insertions, 0 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 335660518..bb1302be4 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
@@ -50,6 +50,7 @@ import org.eclipse.team.internal.ccvs.core.client.Command.KSubstOption;
import org.eclipse.team.internal.ccvs.core.resources.CVSWorkspaceRoot;
import org.eclipse.team.internal.ccvs.core.syncinfo.FolderSyncInfo;
import org.eclipse.team.internal.ccvs.core.syncinfo.ResourceSyncInfo;
+import org.eclipse.team.internal.ccvs.core.util.Assert;
import org.eclipse.team.internal.ccvs.core.util.ResourceStateChangeListeners;
import org.eclipse.team.internal.core.ExceptionCollector;
import org.eclipse.team.internal.ui.TeamUIPlugin;
@@ -81,6 +82,7 @@ public class CVSLightweightDecorator extends LabelProvider implements ILightweig
ImageDescriptor descriptor;
ImageData data;
public CachedImageDescriptor(ImageDescriptor descriptor) {
+ Assert.isNotNull(descriptor);
this.descriptor = descriptor;
}
public ImageData getImageData() {

Back to the top