summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorFrancis Upton IV2013-05-14 18:15:12 (EDT)
committer Gerrit Code Review @ Eclipse.org2013-05-15 07:29:57 (EDT)
commit97b78c29531911986c5ab167483826296da18a1a (patch)
treedeb697a0555f39828f19a0099f1d795f2acb22a8
parent63f40b4ab013a08b5b2e19235f13f3bc4577f81a (diff)
downloadeclipse.platform.ui-97b78c29531911986c5ab167483826296da18a1a.zip
eclipse.platform.ui-97b78c29531911986c5ab167483826296da18a1a.tar.gz
eclipse.platform.ui-97b78c29531911986c5ab167483826296da18a1a.tar.bz2
bug 406903 [CommonNavigator] Unable to create project explorer refs/changes/99/12799/2
-rw-r--r--bundles/org.eclipse.ui.navigator.resources/src/org/eclipse/ui/internal/navigator/resources/workbench/TabbedPropertySheetTitleProvider.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/bundles/org.eclipse.ui.navigator.resources/src/org/eclipse/ui/internal/navigator/resources/workbench/TabbedPropertySheetTitleProvider.java b/bundles/org.eclipse.ui.navigator.resources/src/org/eclipse/ui/internal/navigator/resources/workbench/TabbedPropertySheetTitleProvider.java
index 2a7371e..454c396 100644
--- a/bundles/org.eclipse.ui.navigator.resources/src/org/eclipse/ui/internal/navigator/resources/workbench/TabbedPropertySheetTitleProvider.java
+++ b/bundles/org.eclipse.ui.navigator.resources/src/org/eclipse/ui/internal/navigator/resources/workbench/TabbedPropertySheetTitleProvider.java
@@ -40,8 +40,11 @@ public class TabbedPropertySheetTitleProvider extends LabelProvider {
IWorkbenchPart part = PlatformUI.getWorkbench()
.getActiveWorkbenchWindow().getActivePage().findView(ProjectExplorer.VIEW_ID);
- INavigatorContentService contentService = (INavigatorContentService) part
+ INavigatorContentService contentService = null;
+ if (part != null) {
+ contentService = (INavigatorContentService) part
.getAdapter(INavigatorContentService.class);
+ }
if (contentService != null) {
labelProvider = contentService.createCommonLabelProvider();