Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.wst.css.ui/src/org/eclipse/wst/css/ui/internal/wizard/FacetModuleCoreSupport.java')
-rw-r--r--bundles/org.eclipse.wst.css.ui/src/org/eclipse/wst/css/ui/internal/wizard/FacetModuleCoreSupport.java6
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);
}

Back to the top