You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by mb...@apache.org on 2006/05/24 01:01:51 UTC

svn commit: r409022 - /ant/core/trunk/src/main/org/apache/tools/ant/types/resources/Resources.java

Author: mbenson
Date: Tue May 23 16:01:50 2006
New Revision: 409022

URL: http://svn.apache.org/viewvc?rev=409022&view=rev
Log:
guard against NPE, bugzilla 39648

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/types/resources/Resources.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/types/resources/Resources.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/types/resources/Resources.java?rev=409022&r1=409021&r2=409022&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/types/resources/Resources.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/types/resources/Resources.java Tue May 23 16:01:50 2006
@@ -1,5 +1,5 @@
 /*
- * Copyright 2005 The Apache Software Foundation
+ * Copyright 2005-2006 The Apache Software Foundation
  *
  *  Licensed under the Apache License, Version 2.0 (the "License");
  *  you may not use this file except in compliance with the License.
@@ -207,7 +207,7 @@
         if (isReference()) {
             return getCheckedRef().toString();
         }
-        if (coll.size() == 0) {
+        if (coll == null || coll.isEmpty()) {
             return "";
         }
         StringBuffer sb = new StringBuffer();



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org