diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2020-12-03 02:04:36 +0100 |
---|---|---|
committer | Christian Halstrick <christian.halstrick@sap.com> | 2020-12-17 18:42:00 +0100 |
commit | 90b046e7abcfe56f072d0cf8733ffb576d2997af (patch) | |
tree | d298756b411d39e6be6cc620d2df3e9dc22f6598 /org.eclipse.jgit.test/tst | |
parent | b1d8e8642f1143edc1141f1ce00e39a5b95f0b6d (diff) | |
download | jgit-90b046e7abcfe56f072d0cf8733ffb576d2997af.tar.gz jgit-90b046e7abcfe56f072d0cf8733ffb576d2997af.zip |
[spotbugs] Fix potential NPE in WorkingTreeIterator#isModified
File#list can return null. Fix the potential NPE by using Files#list
which is also faster since it retrieves directory entries lazily while
File#list retrieves them eagerly.
Change-Id: Idf4bda398861c647587e357326b8bc8b587a2584
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit.test/tst')
0 files changed, 0 insertions, 0 deletions