diff --git a/serverApps/src/main/servlet/org/compiere/www/WWindow.java b/serverApps/src/main/servlet/org/compiere/www/WWindow.java index 0d6b1c9e83..7393a62cc1 100644 --- a/serverApps/src/main/servlet/org/compiere/www/WWindow.java +++ b/serverApps/src/main/servlet/org/compiere/www/WWindow.java @@ -754,7 +754,7 @@ public class WWindow extends HttpServlet ii = null; } // -1 indicates NULL - if (ii.intValue() == -1) + if (ii != null && ii.intValue() == -1) ii = null; log.fine("ID: " + columnName + "=" + value + " -> " + ii); return ii;