Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2004-05-11 13:29:45 +0000
committerMichael Valenta2004-05-11 13:29:45 +0000
commit40108d3b19d8f8178d70c8b31c56ae69c61348dc (patch)
treea2215c2d97fd3ef6d22f636bcd276da4d7cc0f22
parent4bfe7a4b2037fab11aec120b958e7036e01a149a (diff)
downloadeclipse.platform.team-40108d3b19d8f8178d70c8b31c56ae69c61348dc.tar.gz
eclipse.platform.team-40108d3b19d8f8178d70c8b31c56ae69c61348dc.tar.xz
eclipse.platform.team-40108d3b19d8f8178d70c8b31c56ae69c61348dc.zip
Bug 61697: NPE when commiting
-rw-r--r--bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/dialogs/DetailsDialog.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/dialogs/DetailsDialog.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/dialogs/DetailsDialog.java
index 53069ba25..3d8ac1177 100644
--- a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/dialogs/DetailsDialog.java
+++ b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/dialogs/DetailsDialog.java
@@ -137,7 +137,11 @@ abstract public class DetailsDialog extends Dialog {
Composite composite = (Composite)super.createDialogArea(parent);
// create image
- Image image = JFaceResources.getImageRegistry().get(getImageKey());
+ String key = getImageKey();
+ Image image = null;
+ if (key != null) {
+ image = JFaceResources.getImageRegistry().get(key);
+ }
if (image != null) {
// create a composite to split the dialog area in two
Composite top = new Composite(composite, SWT.NONE);

Back to the top