Skip to content

Commit 0fa2964

Browse files
committed
Fixed NPE in the getWhereStatement() method in the ServiceRequest class
1 parent ad95e13 commit 0fa2964

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/javaxt/express/ServiceRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1606,7 +1606,7 @@ private String getWhereStatement(ArrayList<HashMap<String, Object>> tablesAndFie
16061606
//Check if the column name is a function
16071607
Field[] fields = getFields(name);
16081608
Field field = null;
1609-
if (fields!=null){
1609+
if (fields!=null && fields.length>0){
16101610
field = fields[0];
16111611
if (field.isFunction()){
16121612
arr.add("(" + item.toString() + ")");

0 commit comments

Comments
 (0)