]> source.dussan.org Git - jgit.git/commit
[spotbugs] Fix potential NPE in FS.FileStoreAttributes#get 25/173425/6
authorMatthias Sohn <matthias.sohn@sap.com>
Fri, 4 Dec 2020 22:41:19 +0000 (23:41 +0100)
committerMatthias Sohn <matthias.sohn@sap.com>
Tue, 22 Dec 2020 09:53:00 +0000 (10:53 +0100)
commitbceb202319b6f2b02b15f32db5c40a912e4bd1f3
treee318bf3c891414cb35e54b7b460026b3f90be708
parentd7b94f019449a8d5210b3bdd8dc439d508d227d5
[spotbugs] Fix potential NPE in FS.FileStoreAttributes#get

Path#getParent can return null, return fallback filestore attributes in
that case.

Change-Id: Ic09484d527bc87b27964b625e07373b82412f2da
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit/src/org/eclipse/jgit/util/FS.java