fixed Row logic

This commit is contained in:
snoop 2017-08-29 16:41:24 +09:00
parent b62b0e0f2e
commit a4928ba964

View File

@ -58,6 +58,7 @@ public class OFResultSetRow extends OFResultSet{
for (List<String> row : this.rows) { for (List<String> row : this.rows) {
String key = makeKey(row); String key = makeKey(row);
if(key == null) continue;
returnMap.put(key,row.get(this.meta.get(valueColumn))); returnMap.put(key,row.get(this.meta.get(valueColumn)));
} }
@ -86,6 +87,10 @@ public class OFResultSetRow extends OFResultSet{
if (find == true) {break;} if (find == true) {break;}
} }
if(findIndex < 0) {
return null;
}
String metric = metrics.get(findIndex).getMetric(); String metric = metrics.get(findIndex).getMetric();
if (arrayColumns != null) { if (arrayColumns != null) {