Author: dgolovin
Date: 2009-09-02 13:07:48 -0400 (Wed, 02 Sep 2009)
New Revision: 17420
Modified:
branches/jbosstools-3.1.0.M3/bpel/plugins/org.eclipse.bpel.validator/src/org/eclipse/bpel/validator/ValidatorHelper.java
Log:
fix for
NullPointerException in BPEL ValidatorHelper
Modified:
branches/jbosstools-3.1.0.M3/bpel/plugins/org.eclipse.bpel.validator/src/org/eclipse/bpel/validator/ValidatorHelper.java
===================================================================
---
branches/jbosstools-3.1.0.M3/bpel/plugins/org.eclipse.bpel.validator/src/org/eclipse/bpel/validator/ValidatorHelper.java 2009-09-02
17:02:54 UTC (rev 17419)
+++
branches/jbosstools-3.1.0.M3/bpel/plugins/org.eclipse.bpel.validator/src/org/eclipse/bpel/validator/ValidatorHelper.java 2009-09-02
17:07:48 UTC (rev 17420)
@@ -10,6 +10,8 @@
*******************************************************************************/
package org.eclipse.bpel.validator;
+import java.util.ArrayList;
+
import org.eclipse.core.resources.IMarker;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IResource;
@@ -26,7 +28,12 @@
@Override
public void registerResource(IResource resource) {
- getValidationFileURIs().add(resource.getFullPath().toOSString());
+ if(resource!=null) {
+ if(getValidationFileURIs()==null) {
+ setValidationFileURIs(new ArrayList<String>());
+ }
+ getValidationFileURIs().add(resource.getFullPath().toOSString());
+ }
}
}