]> source.dussan.org Git - jgit.git/commit
[spotbugs] Fix potential NPEs in FileReftableStackTest 68/173368/5
authorMatthias Sohn <matthias.sohn@sap.com>
Fri, 4 Dec 2020 00:26:23 +0000 (01:26 +0100)
committerChristian Halstrick <christian.halstrick@sap.com>
Thu, 17 Dec 2020 17:42:00 +0000 (18:42 +0100)
commitcc7a1891ee383af61d0982fd8b8313ba68987b3c
tree3b880fe591630c901072354a5c52f740f57831ca
parent90b046e7abcfe56f072d0cf8733ffb576d2997af
[spotbugs] Fix potential NPEs in FileReftableStackTest

File#listFiles can return null. Use Files#list instead to fix the
problem.

Change-Id: I74e0b49aa6dae370219507c64aa43be4d8aa7b82
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/FileReftableStackTest.java