result set

This commit is contained in:
jackdaw@loafle.com 2017-04-25 19:10:53 +09:00
parent 20a5664794
commit 488086b8d2

View File

@ -43,7 +43,7 @@ public abstract class OFResultSet {
// methods // methods
static public OFResultSet newInstance(Item item) { static public OFResultSet newInstance(Item item) {
String type = (String) item.getQuery().getQueryInfo().get("parseDirection"); String type = (String) item.getQuery().getQueryInfo().get("parseDirection");
if (type.equals("row")) { if (type != null && type.equals("row")) {
return new OFResultSetRow(item); return new OFResultSetRow(item);
} else { } else {
return new OFResultSetCol(item); return new OFResultSetCol(item);