Fix NPE in ObjectIdOwnerMap#get
Change-Id: I3812961a27ac410d610ef50c73a28f21bb05ae79 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
This commit is contained in:
parent
41da8de001
commit
a4216e5382
|
@ -135,6 +135,9 @@ public void clear() {
|
|||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public V get(AnyObjectId toFind) {
|
||||
if (toFind == null) {
|
||||
return null;
|
||||
}
|
||||
int h = toFind.w1;
|
||||
V obj = directory[h & mask][h >>> SEGMENT_SHIFT];
|
||||
for (; obj != null; obj = (V) obj.next)
|
||||
|
|
Loading…
Reference in New Issue