Browse Source

add a null-guard PR 53754

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@1555356 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 11 years ago
parent
commit
a8bcf75d20
2 changed files with 7 additions and 2 deletions
  1. +3
    -0
      WHATSNEW
  2. +4
    -2
      src/main/org/apache/tools/ant/util/facade/FacadeTaskHelper.java

+ 3
- 0
WHATSNEW View File

@@ -61,6 +61,9 @@ Fixed bugs:
manifest or manifest attribute. manifest or manifest attribute.
Bugzilla Report 54171 Bugzilla Report 54171


* reading of compiler args has become more defensive
Bugzilla Report 53754

Other changes: Other changes:
-------------- --------------




+ 4
- 2
src/main/org/apache/tools/ant/util/facade/FacadeTaskHelper.java View File

@@ -131,8 +131,10 @@ public class FacadeTaskHelper {
ImplementationSpecificArgument arg = ImplementationSpecificArgument arg =
((ImplementationSpecificArgument) e.next()); ((ImplementationSpecificArgument) e.next());
String[] curr = arg.getParts(getImplementation()); String[] curr = arg.getParts(getImplementation());
for (int i = 0; i < curr.length; i++) {
tmp.add(curr[i]);
if (curr != null) {
for (int i = 0; i < curr.length; i++) {
tmp.add(curr[i]);
}
} }
} }
String[] res = new String[tmp.size()]; String[] res = new String[tmp.size()];


Loading…
Cancel
Save