diff --git a/src/main/org/apache/tools/ant/types/resources/Resources.java b/src/main/org/apache/tools/ant/types/resources/Resources.java index c0f4bbcb8..3a0f7de3d 100755 --- a/src/main/org/apache/tools/ant/types/resources/Resources.java +++ b/src/main/org/apache/tools/ant/types/resources/Resources.java @@ -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 @@ public class Resources extends DataType implements ResourceCollection { if (isReference()) { return getCheckedRef().toString(); } - if (coll.size() == 0) { + if (coll == null || coll.isEmpty()) { return ""; } StringBuffer sb = new StringBuffer();