[spotbugs] Fix potential NPE in FSTest

Change-Id: I6ca37d045642e3aada7e6b42b3cb8c3bba014455
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
This commit is contained in:
Matthias Sohn 2019-11-26 01:48:43 +01:00
parent 74487ffa12
commit 3d4c95293c
1 changed files with 3 additions and 1 deletions

View File

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