diff options
author | nitind | 2008-01-31 01:31:11 +0000 |
---|---|---|
committer | nitind | 2008-01-31 01:31:11 +0000 |
commit | 1e8f6cf5afe50fbf446159f4eddcd75527aedf12 (patch) | |
tree | 557af5605b91fa14c7cbfbbc94a8f3fca8f8eada /bundles/org.eclipse.wst.css.ui/src/org/eclipse/wst/css | |
parent | 2e24b7626aac950ef5366332c20b8c5263e54896 (diff) | |
download | webtools.sourceediting-1e8f6cf5afe50fbf446159f4eddcd75527aedf12.tar.gz webtools.sourceediting-1e8f6cf5afe50fbf446159f4eddcd75527aedf12.tar.xz webtools.sourceediting-1e8f6cf5afe50fbf446159f4eddcd75527aedf12.zip |
[214533] NPE using New HTML Wizard when no project selected in explorer
Diffstat (limited to 'bundles/org.eclipse.wst.css.ui/src/org/eclipse/wst/css')
-rw-r--r-- | bundles/org.eclipse.wst.css.ui/src/org/eclipse/wst/css/ui/internal/wizard/FacetModuleCoreSupport.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bundles/org.eclipse.wst.css.ui/src/org/eclipse/wst/css/ui/internal/wizard/FacetModuleCoreSupport.java b/bundles/org.eclipse.wst.css.ui/src/org/eclipse/wst/css/ui/internal/wizard/FacetModuleCoreSupport.java index befee9d53a..636c6931aa 100644 --- a/bundles/org.eclipse.wst.css.ui/src/org/eclipse/wst/css/ui/internal/wizard/FacetModuleCoreSupport.java +++ b/bundles/org.eclipse.wst.css.ui/src/org/eclipse/wst/css/ui/internal/wizard/FacetModuleCoreSupport.java @@ -30,6 +30,9 @@ final class FacetModuleCoreSupport { * @return the IPath to the "root" of the web contents */ public static IPath getWebContentRootPath(IProject project) { + if (project == null) + return null; + IPath path = null; try { path = FacetModuleCoreSupportDelegate.getWebContentRootPath(project); @@ -47,6 +50,9 @@ final class FacetModuleCoreSupport { * @throws org.eclipse.core.runtime.CoreException */ public static boolean isWebProject(IProject project) { + if (project == null) + return false; + try { return FacetModuleCoreSupportDelegate.isWebProject(project); } |