]> source.dussan.org Git - jgit.git/commit
[findBugs] Prevent potential NPE in CloneCommand.init() 68/73168/3
authorMatthias Sohn <matthias.sohn@sap.com>
Thu, 19 May 2016 13:25:02 +0000 (15:25 +0200)
committerChristian Halstrick <christian.halstrick@sap.com>
Mon, 30 May 2016 14:59:48 +0000 (10:59 -0400)
commit6569a876a3ce8031d1ff89e8a80a4727f89036cf
tree0eb3e4e45fbeb64712e84cae49e2b3cc7d255068
parent0269f074015de65c8ca9b7799660dd8442d5a3c1
[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>
org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties
org.eclipse.jgit/src/org/eclipse/jgit/api/CloneCommand.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/JGitText.java