Browse Source

[spotbugs] Fix potential NPE in FSTest

Change-Id: I6ca37d045642e3aada7e6b42b3cb8c3bba014455
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
stable-5.6
Matthias Sohn 5 years ago
parent
commit
3d4c95293c
  1. 4
      org.eclipse.jgit.test/tst/org/eclipse/jgit/util/FSTest.java

4
org.eclipse.jgit.test/tst/org/eclipse/jgit/util/FSTest.java

@ -254,7 +254,9 @@ public class FSTest {
formatter.format(t1.toInstant()),
Long.valueOf(resolutionNs)), t2.compareTo(t1) > 0);
} finally {
Files.delete(f);
if (f != null) {
Files.delete(f);
}
}
}
}

Loading…
Cancel
Save