]> source.dussan.org Git - jgit.git/commit
[spotbugs] Fix potential NPE in PackFileSnapshotTest 69/173369/5
authorMatthias Sohn <matthias.sohn@sap.com>
Fri, 4 Dec 2020 00:51:37 +0000 (01:51 +0100)
committerChristian Halstrick <christian.halstrick@sap.com>
Thu, 17 Dec 2020 17:42:00 +0000 (18:42 +0100)
commit1ed6353962296a3f70d6673d68dc4784f2766c4e
tree863ef88c85dcbfbf136304ea4e66d6e159315727
parentcc7a1891ee383af61d0982fd8b8313ba68987b3c
[spotbugs] Fix potential NPE in PackFileSnapshotTest

Path#getFileName can return null. Fix the warning by asserting the file
name isn't null.

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