diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2021-01-18 02:44:13 -0500 |
---|---|---|
committer | Gerrit Code Review @ Eclipse.org <gerrit@eclipse.org> | 2021-01-18 02:44:13 -0500 |
commit | 5e2c976233583e9381c0577805b5bcaf0e93a397 (patch) | |
tree | 98a6ad71862c6b7c6fc3ccbc41c8c689bcbe8399 | |
parent | 3ef9f2c764587cfade1fbd28335230b3ae8ea98f (diff) | |
parent | ef04b3b883c3c53804fa91e5489f96db437bac12 (diff) | |
download | jgit-5e2c976233583e9381c0577805b5bcaf0e93a397.tar.gz jgit-5e2c976233583e9381c0577805b5bcaf0e93a397.zip |
Merge "[spotbugs]: Fix potential NPE in FileSnapshot constructor"
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/FileSnapshot.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/FileSnapshot.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/FileSnapshot.java index 7b4406a4b9..8c48cd94b0 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/FileSnapshot.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/FileSnapshot.java @@ -223,7 +223,7 @@ public class FileSnapshot { this.file = file; this.lastRead = Instant.now(); this.fileStoreAttributeCache = useConfig - ? FS.getFileStoreAttributes(file.toPath().getParent()) + ? FS.getFileStoreAttributes(file.toPath()) : FALLBACK_FILESTORE_ATTRIBUTES; BasicFileAttributes fileAttributes = null; try { |