From a722f9bb66a58bbd9f16d2bc231e2fee2fce6221 Mon Sep 17 00:00:00 2001 From: jon Date: Wed, 8 Jan 2014 21:24:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=94=B1=E4=BA=8EFileCacheQu?= =?UTF-8?q?eueScheduler=E4=B8=ADfileCursor=20=E6=96=87=E4=BB=B6=E5=86=8D?= =?UTF-8?q?=E6=AC=A1=E6=89=93=E5=BC=80=E6=97=B6=E6=B2=A1=E6=9C=89=E5=88=9D?= =?UTF-8?q?=E5=A7=8B=E5=8C=96=E6=8A=9B=E5=87=BANullPointerException?= =?UTF-8?q?=E7=9A=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../codecraft/webmagic/scheduler/FileCacheQueueScheduler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webmagic-extension/src/main/java/us/codecraft/webmagic/scheduler/FileCacheQueueScheduler.java b/webmagic-extension/src/main/java/us/codecraft/webmagic/scheduler/FileCacheQueueScheduler.java index 2ded0bdb..3aa23c75 100644 --- a/webmagic-extension/src/main/java/us/codecraft/webmagic/scheduler/FileCacheQueueScheduler.java +++ b/webmagic-extension/src/main/java/us/codecraft/webmagic/scheduler/FileCacheQueueScheduler.java @@ -126,7 +126,7 @@ public class FileCacheQueueScheduler implements Scheduler { private void readCursorFile() throws IOException { BufferedReader fileCursorReader = null; try { - new BufferedReader(new FileReader(getFileName(fileCursor))); + fileCursorReader = new BufferedReader(new FileReader(getFileName(fileCursor))); String line; //read the last number while ((line = fileCursorReader.readLine()) != null) {