Author: dgolovin
Date: 2007-10-31 20:16:06 -0400 (Wed, 31 Oct 2007)
New Revision: 4609
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/modules/SingleDeployableFactory.java
Log:
http://jira.jboss.org/jira/browse/JBIDE-1238
if(event.getDelta()!=null) addedt before invocing any method on delta in resource change
event
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/modules/SingleDeployableFactory.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/modules/SingleDeployableFactory.java 2007-11-01
00:16:03 UTC (rev 4608)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/modules/SingleDeployableFactory.java 2007-11-01
00:16:06 UTC (rev 4609)
@@ -254,17 +254,19 @@
public ArrayList<IPath> list = new ArrayList<IPath>();
public void resourceChanged(IResourceChangeEvent event) {
try {
- event.getDelta().accept(this);
- ArrayList<IPath> clone;
- if( list.size() > 0 ) {
- synchronized(this) {
- clone = new ArrayList<IPath>();
- clone.addAll(list);
- list.clear();
+ if(event.getDelta()!=null) {
+ event.getDelta().accept(this);
+ ArrayList<IPath> clone;
+ if( list.size() > 0 ) {
+ synchronized(this) {
+ clone = new ArrayList<IPath>();
+ clone.addAll(list);
+ list.clear();
+ }
+
+ UndeployFromServerJob job = new UndeployFromServerJob(clone);
+ job.schedule();
}
-
- UndeployFromServerJob job = new UndeployFromServerJob(clone);
- job.schedule();
}
} catch( CoreException ce ) {
}