Browse Source

Fix reversed ?: consequences; avoid NPE.

PR: 36094
Obtained from: Dave Brosius


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278509 13f79535-47bb-0310-9956-ffa450edef68
master
Matthew Jason Benson 20 years ago
parent
commit
8b432916d5
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/main/org/apache/tools/ant/types/Resource.java

+ 1
- 1
src/main/org/apache/tools/ant/types/Resource.java View File

@@ -294,7 +294,7 @@ public class Resource extends DataType
return getCheckedRef().hashCode();
}
String name = getName();
return MAGIC * (name == null ? name.hashCode() : NULL_NAME);
return MAGIC * (name == null ? NULL_NAME : name.hashCode());
}

/**


Loading…
Cancel
Save