summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiles Parker2012-05-15 11:24:45 (EDT)
committerKaloyan Raev2012-05-15 11:24:45 (EDT)
commitfecf57c87f31967b9c85217a120115802a59953a (patch)
tree411bff3a460aa450bd8a060806bb361cba8e2f2c
parentfa4f73a67dc11109569f94be5c9ddde5717ab0ff (diff)
downloadorg.eclipse.libra-fecf57c87f31967b9c85217a120115802a59953a.zip
org.eclipse.libra-fecf57c87f31967b9c85217a120115802a59953a.tar.gz
org.eclipse.libra-fecf57c87f31967b9c85217a120115802a59953a.tar.bz2
[377582] Assertion failed when selecting bundle in overview
-rw-r--r--plugins/org.eclipse.libra.framework.editor.ui/src/org/eclipse/libra/framework/editor/ui/internal/overview/BundleInformationDetailsPart.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/org.eclipse.libra.framework.editor.ui/src/org/eclipse/libra/framework/editor/ui/internal/overview/BundleInformationDetailsPart.java b/plugins/org.eclipse.libra.framework.editor.ui/src/org/eclipse/libra/framework/editor/ui/internal/overview/BundleInformationDetailsPart.java
index 6a2b6ba..b36cc64 100644
--- a/plugins/org.eclipse.libra.framework.editor.ui/src/org/eclipse/libra/framework/editor/ui/internal/overview/BundleInformationDetailsPart.java
+++ b/plugins/org.eclipse.libra.framework.editor.ui/src/org/eclipse/libra/framework/editor/ui/internal/overview/BundleInformationDetailsPart.java
@@ -155,8 +155,11 @@ public class BundleInformationDetailsPart extends AbstractFormPart implements ID
public Object[] getChildren(Object parentElement) {
if (parentElement instanceof IPackageImport) {
- String supplierId = ((IPackageImport) parentElement).getSupplierId();
- return new Object[] { bundles.get(Long.valueOf(supplierId)) };
+ String supplierId = ((IPackageImport) parentElement).getSupplierId();
+ IBundle value = bundles.get(Long.valueOf(supplierId));
+ if (value != null) {
+ return new Object[] { value };
+ }
}
return new Object[0];
}