fixed Row logic
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user