Merge "Fix NPE during InflaterCache return after corrupt loose object"
This commit is contained in:
commit
4ef96296f7
|
@ -120,7 +120,6 @@ private UnpackedObjectLoader(final byte[] compressed, final AnyObjectId id)
|
||||||
final CorruptObjectException coe;
|
final CorruptObjectException coe;
|
||||||
coe = new CorruptObjectException(id, "bad stream");
|
coe = new CorruptObjectException(id, "bad stream");
|
||||||
coe.initCause(dfe);
|
coe.initCause(dfe);
|
||||||
inflater.end();
|
|
||||||
throw coe;
|
throw coe;
|
||||||
}
|
}
|
||||||
if (avail < 5)
|
if (avail < 5)
|
||||||
|
|
Loading…
Reference in New Issue