diff --git a/base/src/org/compiere/model/DataStatusEvent.java b/base/src/org/compiere/model/DataStatusEvent.java index cb708fe8cc..53573c93a8 100644 --- a/base/src/org/compiere/model/DataStatusEvent.java +++ b/base/src/org/compiere/model/DataStatusEvent.java @@ -63,7 +63,7 @@ public final class DataStatusEvent extends EventObject implements Serializable private int m_loadedRows = -1; private int m_currentRow = -1; // - private int m_changedColumn = 0; + private int m_changedColumn = -1; private String m_columnName = null; /** Created */ diff --git a/base/src/org/compiere/model/GridTab.java b/base/src/org/compiere/model/GridTab.java index 41d1fb9295..2ef7c27e8b 100644 --- a/base/src/org/compiere/model/GridTab.java +++ b/base/src/org/compiere/model/GridTab.java @@ -2182,7 +2182,7 @@ public class GridTab implements DataStatusListener, Evaluatee, Serializable */ public GridField getField (int index) { - return m_mTable.getField(index); + return (index >= 0 ? m_mTable.getField(index) : null); } // getField /**