Avoid an NPE after 7b01a53692

While fixing an NPE, I introduced another one in a deprecated isModified
method. It cannot avoid NPE's entirely, which is the reason the method
is deprecated

Change-Id: I5147c1c94621586dd84bd11e6090a954523b6c1c
This commit is contained in:
Robin Rosenberg 2014-03-01 12:44:34 +01:00
parent 5de70c6fab
commit abff667d40
1 changed files with 2 additions and 1 deletions

View File

@ -803,7 +803,8 @@ else if (!entry.isSmudged())
*/
public boolean isModified(DirCacheEntry entry, boolean forceContentCheck) {
try {
return isModified(entry, forceContentCheck, null);
return isModified(entry, forceContentCheck,
repository.newObjectReader());
} catch (IOException e) {
throw new JGitInternalException(e.getMessage(), e);
}