]> source.dussan.org Git - jgit.git/commit
Fix possible NPE in DirCache.isModified() 51/2951/1
authorPhilipp Thun <philipp.thun@sap.com>
Mon, 28 Mar 2011 15:54:24 +0000 (17:54 +0200)
committerPhilipp Thun <philipp.thun@sap.com>
Mon, 28 Mar 2011 15:54:24 +0000 (17:54 +0200)
commit475672866a15ff325583e9ccadd9d606d8b66384
tree9d8d631b11c643c916e0afcdf847f8fe20a14ce9
parent23967441fc5b72996f5f29e197d52e763a14cb32
Fix possible NPE in DirCache.isModified()

The snapshot field of a DirCache object for a newly created repository
can be null. This fix prevents a NPE when isModified() is called in
such a situation.

Change-Id: I61a1b45db2d60fdcc0f87373ac6fd75ac4c4a202
Signed-off-by: Philipp Thun <philipp.thun@sap.com>
org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCache.java