Author: rob.stryker(a)jboss.com
Date: 2009-03-06 01:05:55 -0500 (Fri, 06 Mar 2009)
New Revision: 14066
Modified:
trunk/esb/plugins/org.jboss.tools.esb.project.ui/src/org/jboss/tools/esb/project/ui/wizards/export/ESBComponentExportDataModelProvider.java
Log:
JBIDE-3928 - NPE
Modified:
trunk/esb/plugins/org.jboss.tools.esb.project.ui/src/org/jboss/tools/esb/project/ui/wizards/export/ESBComponentExportDataModelProvider.java
===================================================================
---
trunk/esb/plugins/org.jboss.tools.esb.project.ui/src/org/jboss/tools/esb/project/ui/wizards/export/ESBComponentExportDataModelProvider.java 2009-03-06
06:05:36 UTC (rev 14065)
+++
trunk/esb/plugins/org.jboss.tools.esb.project.ui/src/org/jboss/tools/esb/project/ui/wizards/export/ESBComponentExportDataModelProvider.java 2009-03-06
06:05:55 UTC (rev 14066)
@@ -59,10 +59,12 @@
public IStatus validate(String propertyName) {
if (PROJECT_NAME.equals(propertyName)) {
String projectName = (String) model.getProperty(PROJECT_NAME);
- IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(projectName);
- if( project != null ) {
- if(JBossESBProjectUtil.isESBProject(project))
- return Status.OK_STATUS;
+ if( projectName != null ) {
+ IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(projectName);
+ if( project != null ) {
+ if(JBossESBProjectUtil.isESBProject(project))
+ return Status.OK_STATUS;
+ }
}
return new Status(IStatus.ERROR, ESBProjectPlugin.PLUGIN_ID,
NLS.bind(JBossESBUIMessages.ESBExportWizard_NotValidProject, projectName));
Show replies by date