commit | ae43fe79f41febb0005883b477a90023ff831e1a | [log] [tgz] |
---|---|---|
author | mgorning <mgorning> | Fri Aug 20 10:52:55 2010 +0000 |
committer | mgorning <mgorning> | Fri Aug 20 10:52:55 2010 +0000 |
tree | 97de6d4e15e97d6b8a68cc1b24e7ddba93bdedc7 | |
parent | 6416feca49dae190610f31b0e900ac1f456971e0 [diff] |
error handling improved - empty image id is a valid use case
diff --git a/plugins/org.eclipse.graphiti.ui/src/org/eclipse/graphiti/ui/internal/services/impl/ImageService.java b/plugins/org.eclipse.graphiti.ui/src/org/eclipse/graphiti/ui/internal/services/impl/ImageService.java index bbf267f..3ff6ad8 100644 --- a/plugins/org.eclipse.graphiti.ui/src/org/eclipse/graphiti/ui/internal/services/impl/ImageService.java +++ b/plugins/org.eclipse.graphiti.ui/src/org/eclipse/graphiti/ui/internal/services/impl/ImageService.java
@@ -51,7 +51,7 @@ public Image getImageForId(String imageId) { if (imageId == null) - throw new IllegalArgumentException("imageId must not be null"); + return null; // if image already available take it ImageRegistry imageRegistry = GraphitiUIPlugin.getDefault().getImageRegistry();