| commit | fecf57c87f31967b9c85217a120115802a59953a | [log] [tgz] |
|---|---|---|
| author | Miles Parker <miles.parker@tasktop.com> | Tue May 15 18:24:45 2012 +0300 |
| committer | Kaloyan Raev <kaloyan.raev@sap.com> | Tue May 15 18:24:45 2012 +0300 |
| tree | 411bff3a460aa450bd8a060806bb361cba8e2f2c | |
| parent | fa4f73a67dc11109569f94be5c9ddde5717ab0ff [diff] |
[377582] Assertion failed when selecting bundle in overview
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 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]; }