| author | Miles Parker | 2012-05-15 11:24:45 (EDT) |
|---|---|---|
| committer | Kaloyan Raev | 2012-05-15 11:24:45 (EDT) |
| commit | fecf57c87f31967b9c85217a120115802a59953a (patch) (side-by-side diff) | |
| tree | 411bff3a460aa450bd8a060806bb361cba8e2f2c | |
| parent | fa4f73a67dc11109569f94be5c9ddde5717ab0ff (diff) | |
| download | org.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.java | 7 |
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]; } |

