eclipse plugin: Fix a null reference exception...

...in case the projects explorer is not created
This commit is contained in:
Timotei Dolean 2011-04-10 19:34:08 +00:00
parent 797142008b
commit 3afa4c201b

View file

@ -145,7 +145,8 @@ public class ProjectUtils
}
monitor.worked(10);
WorkspaceUtils.getProjectsExplorer().getCommonViewer().refresh();
if (WorkspaceUtils.getProjectsExplorer() != null)
WorkspaceUtils.getProjectsExplorer().getCommonViewer().refresh();
return 0;
}