From b46f81cad412ff2c8056e3c04283a916764c6355 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Sat, 18 Feb 2012 11:21:10 -0500 Subject: [PATCH] IDEMPIERE-68 Current record could disappear after executing a button Fix NPE when the actual row is deleted http://jira.idempiere.com/browse/IDEMPIERE-68 --- org.adempiere.base/src/org/compiere/model/GridTable.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/org.adempiere.base/src/org/compiere/model/GridTable.java b/org.adempiere.base/src/org/compiere/model/GridTable.java index b8aa726b67..8d29a88dfd 100644 --- a/org.adempiere.base/src/org/compiere/model/GridTable.java +++ b/org.adempiere.base/src/org/compiere/model/GridTable.java @@ -2740,6 +2740,9 @@ public class GridTable extends AbstractTableModel return null; Object[] rowData = getDataAtRow(row); + if (rowData == null) + return null; + String where = getWhereClause(rowData); return where;