Author: snjeza
Date: 2009-02-02 12:35:09 -0500 (Mon, 02 Feb 2009)
New Revision: 13428
Modified:
trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/wizard/NewJSFPortletClassWizardPage.java
Log:
JBIDE-3624 java.lang.IllegalArgumentException: Path for project must have only one
segment
Modified:
trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/wizard/NewJSFPortletClassWizardPage.java
===================================================================
---
trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/wizard/NewJSFPortletClassWizardPage.java 2009-02-02
16:58:46 UTC (rev 13427)
+++
trunk/portlet/plugins/org.jboss.tools.portlet.ui/src/org/jboss/tools/portlet/ui/internal/wizard/NewJSFPortletClassWizardPage.java 2009-02-02
17:35:09 UTC (rev 13428)
@@ -191,6 +191,9 @@
protected void updateProject() {
String projectName = projectNameCombo.getText();
+ if (projectName == null || projectName.trim().length() <= 0) {
+ return;
+ }
IProject project = ProjectUtilities.getProject(projectName);
try {
boolean isSeamPortlet = FacetedProjectFramework.hasProjectFacet(project,
IPortletConstants.SEAMPORTLET_FACET_ID);
Show replies by date