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);