Permalink
Browse files

Merge branch 'master' of git://github.com/wonlay/zoie

  • Loading branch information...
javasoze committed Dec 14, 2011
2 parents 6c7cfef + 737df10 commit 59a754e714de87df573f51e4f56f23f7aeca8e21
Showing with 4 additions and 2 deletions.
  1. +4 −2 zoie-core/src/main/java/proj/zoie/api/ZoieMultiReader.java
@@ -67,8 +67,10 @@ public ZoieMultiReader(IndexReader in,IndexReader[] subReaders,IndexReaderDecora
@Override
public byte[] getStoredValue(long uid) throws IOException {
- int docid = this.getDocIDMaper().getDocID(uid);
- int idx = readerIndex(docid);
+ int docid = this.getDocIDMaper().getDocID(uid);
+ if (docid < 0) return null;
+ int idx = readerIndex(docid);
+ if (idx < 0) return null;
ZoieIndexReader<R> subReader = _subZoieReaders.get(idx);
return subReader.getStoredValue(uid);
}

0 comments on commit 59a754e

Please sign in to comment.