jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1199960 - /jmeter/trunk/src/core/org/apache/jmeter/testbeans/gui/TableEditor.java
Date Wed, 09 Nov 2011 21:03:15 GMT
Author: sebb
Date: Wed Nov  9 21:03:15 2011
New Revision: 1199960

URL: http://svn.apache.org/viewvc?rev=1199960&view=rev
Log:
Only try to remove valid selected row

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/testbeans/gui/TableEditor.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/testbeans/gui/TableEditor.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/testbeans/gui/TableEditor.java?rev=1199960&r1=1199959&r2=1199960&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/testbeans/gui/TableEditor.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/testbeans/gui/TableEditor.java Wed Nov  9 21:03:15
2011
@@ -267,7 +267,10 @@ public class TableEditor extends Propert
     {
         public void actionPerformed(ActionEvent e)
         {
-            model.removeRow(table.getSelectedRow());
+            int row = table.getSelectedRow();
+            if (row >= 0) {
+                model.removeRow(row);
+            }
         }
     }
 



Mime
View raw message