Browse Source

Merge "Fix null ref exception in DirCacheCheckout"

stable-0.10
Shawn Pearce 14 years ago committed by Code Review
parent
commit
e8315ce19d
  1. 5
      org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheCheckout.java

5
org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCacheCheckout.java vendored

@ -274,8 +274,9 @@ public class DirCacheCheckout {
WorkingTreeIterator f) {
if (m != null) {
if (i == null || f == null || !m.idEqual(i)
|| f.isModified(i.getDirCacheEntry(), true,
config_filemode(), repo.getFS())) {
|| (i.getDirCacheEntry() != null && f.isModified(i
.getDirCacheEntry(), true, config_filemode(), repo
.getFS()))) {
update(m.getEntryPathString(), m.getEntryObjectId(),
m.getEntryFileMode());
} else

Loading…
Cancel
Save