Browse Source

Fix comparison w/ exposed NPE

PR: 36093
Obtained from: Dave Brosius


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

+ 1
- 1
src/main/org/apache/tools/ant/taskdefs/SignJar.java View File

@@ -447,7 +447,7 @@ public class SignJar extends AbstractJarSignerTask {
* @return true if the signedjarFile is considered up to date
*/
protected boolean isUpToDate(File jarFile, File signedjarFile) {
if (null == jarFile && !jarFile.exists()) {
if (null == jarFile || !jarFile.exists()) {
//these are pathological cases, but retained in case somebody
//subclassed us.
return false;


Loading…
Cancel
Save