diff --git a/base/src/org/compiere/model/GridTable.java b/base/src/org/compiere/model/GridTable.java index ca1bb1339b..6bce4f1097 100644 --- a/base/src/org/compiere/model/GridTable.java +++ b/base/src/org/compiere/model/GridTable.java @@ -855,6 +855,9 @@ public class GridTable extends AbstractTableModel public void sort (int col, boolean ascending) { log.info("#" + col + " " + ascending); + if (col < 0) { + return; + } if (getRowCount() == 0) return;