]> source.dussan.org Git - jgit.git/commit
DHT: Fix NPE during prefetch 05/3705/1
authorShawn O. Pearce <spearce@spearce.org>
Thu, 9 Jun 2011 23:56:53 +0000 (16:56 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Fri, 10 Jun 2011 00:29:46 +0000 (17:29 -0700)
commitd00f527d659c9eb1fabc434b45f94b98e221c509
treeacc7e5431bbfd096bded6126d9c42674bd6fa3dc
parent0e1d5ad8f8642bc99114b0080204fd4bd28df38d
DHT: Fix NPE during prefetch

The Prefetcher may have loaded a chunk that is a fragment, if the
DhtReader is scanning the Prefetcher's chunks for a particular
object fragment chunks will be missing the index and NPE during
the findOffset() call into the index itself.

Change-Id: Ie2823724c289f745655076c5209acec32361a1ea
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit.storage.dht/src/org/eclipse/jgit/storage/dht/PackChunk.java