Author: rob.stryker(a)jboss.com
Date: 2007-11-02 15:47:15 -0400 (Fri, 02 Nov 2007)
New Revision: 4673
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/publishers/JstPublisher.java
Log:
NPE
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/publishers/JstPublisher.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/publishers/JstPublisher.java 2007-11-02
19:20:48 UTC (rev 4672)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/publishers/JstPublisher.java 2007-11-02
19:47:15 UTC (rev 4673)
@@ -290,6 +290,7 @@
protected int countChanges(IModuleResourceDelta[] deltas) {
IModuleResource res;
int count = 0;
+ if( deltas == null ) return 0;
for( int i = 0; i < deltas.length; i++ ) {
res = deltas[i].getModuleResource();
if( res != null && res instanceof IModuleFile)
@@ -308,6 +309,7 @@
}
protected int countMembers(IModuleResource[] resources) {
int count = 0;
+ if( resources == null ) return 0;
for( int i = 0; i < resources.length; i++ ) {
if( resources[i] instanceof IModuleFile ) {
count++;
Show replies by date