Author: pwang
Date: 2010-09-15 15:58:56 -0700 (Wed, 15 Sep 2010)
New Revision: 21881

Modified:
   
coreplugins/trunk/browser/src/main/java/browser/ui/CyAttributeBrowserTable.java
Log:
Fixed an exception, if user click outside the attrs table, just ignore

Modified: 
coreplugins/trunk/browser/src/main/java/browser/ui/CyAttributeBrowserTable.java
===================================================================
--- 
coreplugins/trunk/browser/src/main/java/browser/ui/CyAttributeBrowserTable.java 
    2010-09-15 22:44:02 UTC (rev 21880)
+++ 
coreplugins/trunk/browser/src/main/java/browser/ui/CyAttributeBrowserTable.java 
    2010-09-15 22:58:56 UTC (rev 21881)
@@ -688,7 +688,15 @@
                                        if (column >= 
tableModel.getColumnCount() || row >= tableModel.getRowCount())
                                                return;
 
-                                       final ValidatedObjectAndEditString 
objectAndEditString = (ValidatedObjectAndEditString)getValueAt(row, column);
+                                       ValidatedObjectAndEditString 
objectAndEditString = null;
+                                       try {
+                                               objectAndEditString = 
(ValidatedObjectAndEditString)getValueAt(row, column);
+                                       }
+                                       catch (Exception ex){
+                                               // If user clicks outside the 
table, just ignore
+                                               return;
+                                       }
+                                       
                                        getSelected();
 
                                        // If action is right click, then show 
edit pop-up menu

-- 
You received this message because you are subscribed to the Google Groups 
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/cytoscape-cvs?hl=en.

Reply via email to