diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2019-06-27 00:39:24 +0200 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2019-07-17 09:42:14 +0200 |
commit | 79ede0c3227b0c5f5d7790b58a0881486e06d7cc (patch) | |
tree | 50a9cb60618336e469c0fcda6df0a0d5da8e8f1c /org.eclipse.jgit/src/org | |
parent | be66222d1a607ef3feb3b076352e9b8251e0eec2 (diff) | |
download | jgit-79ede0c3227b0c5f5d7790b58a0881486e06d7cc.tar.gz jgit-79ede0c3227b0c5f5d7790b58a0881486e06d7cc.zip |
Fix NPE in FS$FileStoreAttributeCache.getFsTimestampResolution
Bug: 548682
Change-Id: I48840d3a68cf1db92c056d218a0d5ed0b9ea4c45
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit/src/org')
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/util/FS.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/util/FS.java b/org.eclipse.jgit/src/org/eclipse/jgit/util/FS.java index 67634cbe78..a970a7df23 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/util/FS.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/util/FS.java @@ -218,6 +218,7 @@ public abstract class FS { + System.getProperty("java.vm.version") + '|'; //$NON-NLS-1$ private static Duration getFsTimestampResolution(Path file) { + file = file.toAbsolutePath(); Path dir = Files.isDirectory(file) ? file : file.getParent(); FileStore s; try { |