From a4928ba964f6c29fb99b38b5df333e6bc7ffc855 Mon Sep 17 00:00:00 2001 From: snoop Date: Tue, 29 Aug 2017 16:41:24 +0900 Subject: [PATCH] fixed Row logic --- .../com/loafle/overflow/crawler/result/OFResultSetRow.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/com/loafle/overflow/crawler/result/OFResultSetRow.java b/src/main/java/com/loafle/overflow/crawler/result/OFResultSetRow.java index b5371e2..7df3e1a 100644 --- a/src/main/java/com/loafle/overflow/crawler/result/OFResultSetRow.java +++ b/src/main/java/com/loafle/overflow/crawler/result/OFResultSetRow.java @@ -58,6 +58,7 @@ public class OFResultSetRow extends OFResultSet{ for (List row : this.rows) { String key = makeKey(row); + if(key == null) continue; returnMap.put(key,row.get(this.meta.get(valueColumn))); } @@ -86,6 +87,10 @@ public class OFResultSetRow extends OFResultSet{ if (find == true) {break;} } + if(findIndex < 0) { + return null; + } + String metric = metrics.get(findIndex).getMetric(); if (arrayColumns != null) {