]> source.dussan.org Git - jgit.git/commit
Fix NPE in RenameDetector 51/1151/1
authorShawn O. Pearce <spearce@spearce.org>
Tue, 20 Jul 2010 14:52:35 +0000 (07:52 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Tue, 20 Jul 2010 14:52:35 +0000 (07:52 -0700)
commit395d2360582e2c11c9d4418f925860b5484d7a98
tree6b23c500c8f13b0e3762a7d57a6dc7dec9514e65
parentb518189b5c580e21c5f6d8a3b59e7f1538f0110e
Fix NPE in RenameDetector

If we have two adds of the same object but no deletes the detector
threw an NPE because the entry that came back from the deleted map
was null (no matching objects).  In this case we need to put the
adds all back onto the list of left over additions since they did
not match a delete.

Change-Id: Ie68fbe7426b4dc0cb571a08911c7adbffff755d5
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
CC: Jeffrey Schumacher" <jeffschu@google.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/diff/RenameDetectorTest.java
org.eclipse.jgit/src/org/eclipse/jgit/diff/RenameDetector.java