diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2016-05-19 15:25:02 +0200 |
---|---|---|
committer | Christian Halstrick <christian.halstrick@sap.com> | 2016-05-30 10:59:48 -0400 |
commit | 6569a876a3ce8031d1ff89e8a80a4727f89036cf (patch) | |
tree | 0eb3e4e45fbeb64712e84cae49e2b3cc7d255068 /org.eclipse.jgit/resources | |
parent | 0269f074015de65c8ca9b7799660dd8442d5a3c1 (diff) | |
download | jgit-6569a876a3ce8031d1ff89e8a80a4727f89036cf.tar.gz jgit-6569a876a3ce8031d1ff89e8a80a4727f89036cf.zip |
[findBugs] Prevent potential NPE in CloneCommand.init()
File.listFiles() returns null if the File is not a directory, improve
validation of directory and gitDir to fix this.
Change-Id: I763d08835faf96a0beb8e706992df0908526bd2c
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit/resources')
-rw-r--r-- | org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties b/org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties index f7d9374bd7..b71e48b526 100644 --- a/org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties +++ b/org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties @@ -314,6 +314,8 @@ indexFileIsTooLargeForJgit=Index file is too large for jgit indexSignatureIsInvalid=Index signature is invalid: {0} indexWriteException=Modified index could not be written initFailedBareRepoDifferentDirs=When initializing a bare repo with directory {0} and separate git-dir {1} specified both folders must point to the same location +initFailedDirIsNoDirectory=Cannot set directory to ''{0}'' which is not a directory +initFailedGitDirIsNoDirectory=Cannot set git-dir to ''{0}'' which is not a directory initFailedNonBareRepoSameDirs=When initializing a non-bare repo with directory {0} and separate git-dir {1} specified both folders should not point to the same location inMemoryBufferLimitExceeded=In-memory buffer limit exceeded inputDidntMatchLength=Input did not match supplied length. {0} bytes are missing. |