]> source.dussan.org Git - jgit.git/commit
[spotbugs] Fix potential NPE in FileBasedConfigTest 66/173366/4
authorMatthias Sohn <matthias.sohn@sap.com>
Thu, 3 Dec 2020 00:54:25 +0000 (01:54 +0100)
committerChristian Halstrick <christian.halstrick@sap.com>
Thu, 17 Dec 2020 17:42:00 +0000 (18:42 +0100)
commitb1d8e8642f1143edc1141f1ce00e39a5b95f0b6d
tree08d293dbc2d2880a93d93fc737ef78af75b07974
parent3705ac58391f979d2a7b6689dd96d6531e975c53
[spotbugs] Fix potential NPE in FileBasedConfigTest

Path#getParent can return null. Fix the warning by implementing a helper
method which asserts the parent is not null.

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