Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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