diff options
author | Uwe Stieber | 2012-05-11 10:13:29 +0000 |
---|---|---|
committer | Uwe Stieber | 2012-05-11 10:13:29 +0000 |
commit | b1b25b04fd882636c40887119a2b8c41ce4dd2e9 (patch) | |
tree | a16d30420def13978c5ef74d218cfe74962eb16a /target_explorer | |
parent | 7dff42e584697d31861f5b91eff32c4c9e23e014 (diff) | |
download | org.eclipse.tcf-b1b25b04fd882636c40887119a2b8c41ce4dd2e9.tar.gz org.eclipse.tcf-b1b25b04fd882636c40887119a2b8c41ce4dd2e9.tar.xz org.eclipse.tcf-b1b25b04fd882636c40887119a2b8c41ce4dd2e9.zip |
Target Explorer: Fix NPE
Diffstat (limited to 'target_explorer')
-rw-r--r-- | target_explorer/plugins/org.eclipse.tcf.te.ui.views/src/org/eclipse/tcf/te/ui/views/handler/ContentMRUContribution.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.ui.views/src/org/eclipse/tcf/te/ui/views/handler/ContentMRUContribution.java b/target_explorer/plugins/org.eclipse.tcf.te.ui.views/src/org/eclipse/tcf/te/ui/views/handler/ContentMRUContribution.java index 3ce54a9b0..f44552d42 100644 --- a/target_explorer/plugins/org.eclipse.tcf.te.ui.views/src/org/eclipse/tcf/te/ui/views/handler/ContentMRUContribution.java +++ b/target_explorer/plugins/org.eclipse.tcf.te.ui.views/src/org/eclipse/tcf/te/ui/views/handler/ContentMRUContribution.java @@ -90,7 +90,9 @@ public class ContentMRUContribution extends CompoundContributionItem { for (int i = 0; i < extensionSet.size(); i++) {
String extensionId = extensionSet.get(i);
INavigatorContentDescriptor contentDescriptor = contentService.getContentDescriptorById(extensionId);
- items.add(new ActionContributionItem(new ContentMRUAction((i + 1), contentDescriptor, contentService, commonViewer)));
+ if (contentDescriptor != null) {
+ items.add(new ActionContributionItem(new ContentMRUAction((i + 1), contentDescriptor, contentService, commonViewer)));
+ }
}
return items.toArray(new IContributionItem[items.size()]);
}
|