From 488086b8d21bbcbcbc30367b1d72386571970e65 Mon Sep 17 00:00:00 2001 From: "jackdaw@loafle.com" Date: Tue, 25 Apr 2017 19:10:53 +0900 Subject: [PATCH] result set --- .../java/com/loafle/overflow/crawler/result/OFResultSet.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/loafle/overflow/crawler/result/OFResultSet.java b/src/main/java/com/loafle/overflow/crawler/result/OFResultSet.java index 50b36ed..f1ba219 100644 --- a/src/main/java/com/loafle/overflow/crawler/result/OFResultSet.java +++ b/src/main/java/com/loafle/overflow/crawler/result/OFResultSet.java @@ -43,7 +43,7 @@ public abstract class OFResultSet { // methods static public OFResultSet newInstance(Item item) { String type = (String) item.getQuery().getQueryInfo().get("parseDirection"); - if (type.equals("row")) { + if (type != null && type.equals("row")) { return new OFResultSetRow(item); } else { return new OFResultSetCol(item);