details: https://code.openbravo.com/erp/devel/pi/rev/79bbbb6e87d0 changeset: 34464:79bbbb6e87d0 user: Asier Lostalé <asier.lostale <at> openbravo.com> date: Tue Jul 24 16:11:24 2018 +0200 summary: related to bug 39014: fixed NPE
When processing alert rules with null filter clause diffstat: modules/org.openbravo.client.application/src/org/openbravo/client/application/AlertActionHandler.java | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diffs (12 lines): diff -r 1dbba4eb40f8 -r 79bbbb6e87d0 modules/org.openbravo.client.application/src/org/openbravo/client/application/AlertActionHandler.java --- a/modules/org.openbravo.client.application/src/org/openbravo/client/application/AlertActionHandler.java Wed Jul 18 17:56:03 2018 -0400 +++ b/modules/org.openbravo.client.application/src/org/openbravo/client/application/AlertActionHandler.java Tue Jul 24 16:11:24 2018 +0200 @@ -160,7 +160,7 @@ private String getFilterSQL(String filterClause, VariablesSecureApp vars) { String whereClause; try { - whereClause = new UsedByLink().getWhereClause(vars, "", filterClause); + whereClause = new UsedByLink().getWhereClause(vars, "", Objects.toString(filterClause, "")); } catch (ServletException ignore) { log4j.error("Could not convert filter clause into SQL: " + filterClause, ignore); whereClause = " AND 1=2"; // do not count if where clause is broken ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Openbravo-commits mailing list Openbravo-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbravo-commits