[spotbugs] Fix potential NPE in FSTest
Change-Id: I6ca37d045642e3aada7e6b42b3cb8c3bba014455 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
This commit is contained in:
parent
74487ffa12
commit
3d4c95293c
|
@ -254,10 +254,12 @@ public void testFsTimestampResolution() throws Exception {
|
||||||
formatter.format(t1.toInstant()),
|
formatter.format(t1.toInstant()),
|
||||||
Long.valueOf(resolutionNs)), t2.compareTo(t1) > 0);
|
Long.valueOf(resolutionNs)), t2.compareTo(t1) > 0);
|
||||||
} finally {
|
} finally {
|
||||||
|
if (f != null) {
|
||||||
Files.delete(f);
|
Files.delete(f);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// bug 548682
|
// bug 548682
|
||||||
@Test
|
@Test
|
||||||
|
|
Loading…
Reference in New Issue