]> source.dussan.org Git - jgit.git/commit
[spotbugs] Fix potential NPE in FileRepository#convertToReftable 64/173364/3
authorMatthias Sohn <matthias.sohn@sap.com>
Thu, 3 Dec 2020 00:44:58 +0000 (01:44 +0100)
committerChristian Halstrick <christian.halstrick@sap.com>
Thu, 17 Dec 2020 16:18:11 +0000 (17:18 +0100)
commita2bb540f2998689ae9c7f894ca5d74c6c55f9127
treee0efabec6de1a15b009bf31f8eaf92a2b4ae17c6
parent15998622fabadf3931658d9cf359ed28c36fed23
[spotbugs] Fix potential NPE in FileRepository#convertToReftable

File#listFiles can return null. Use Files#list which does not return
null and should be faster since it's returning directory entries lazily
while File#listFiles fetches them eagerly.

Change-Id: I3bfe2a52278244fc469143692c06b05d9af0d0d4
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/FileRepository.java