Check pages in read SpiderInfo
This commit is contained in:
1 parent
81dce7d297
commit
d9265610c3
1 file changed
+4
@@ -102,6 +102,10 @@ public class SpiderInfo {
|
||||
spiderInfo.previewPerPage = Integer.parseInt(IOUtils.readAsciiLine(is));
|
||||
// Pages
|
||||
spiderInfo.pages = Integer.parseInt(IOUtils.readAsciiLine(is));
|
||||
// Check pages
|
||||
if (spiderInfo.pages <= 0) {
|
||||
return null;
|
||||
}
|
||||
// PToken
|
||||
spiderInfo.pTokenMap = new SparseArray<>(spiderInfo.pages);
|
||||
while (true) { // EOFException will raise
|
||||
|
||||
Reference in new issue
Block a user