]> source.dussan.org Git - jgit.git/commit
Skip broken symbolic ref in DfsReftableDatabase 75/115575/1
authorZhen Chen <czhen@google.com>
Wed, 17 Jan 2018 23:14:43 +0000 (15:14 -0800)
committerZhen Chen <czhen@google.com>
Wed, 17 Jan 2018 23:19:05 +0000 (15:19 -0800)
commit5452ac1deae00a1dcef9202c8ee5b928a5e70eb9
treee73142f4cdc9853a855690bcdd2bd74878bbaf62
parentf40ebed1244283040ce64fb87dc1644438245478
Skip broken symbolic ref in DfsReftableDatabase

We skipped the broken symbolic reference in other implementation like
DfsRefDatabase, RefDirectory. The broken symbolic reference may cause
NPE when caller forget to have a null check against the object id before
calling parse it.

Change-Id: If5e07202e9ee329d0bd9488936d79c98143c7ad9
Signed-off-by: Zhen Chen <czhen@google.com>
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsReftableDatabase.java