Author: clopes
Date: 2012-05-14 13:40:17 -0700 (Mon, 14 May 2012)
New Revision: 29263
Modified:
core3/impl/trunk/table-browser-impl/src/main/java/org/cytoscape/browser/internal/AttributeBrowserToolBar.java
Log:
Fixes NPE: clicking the "Function Builder" button in the "Tables" data browser
tab when there is no global tables.
Modified:
core3/impl/trunk/table-browser-impl/src/main/java/org/cytoscape/browser/internal/AttributeBrowserToolBar.java
===================================================================
---
core3/impl/trunk/table-browser-impl/src/main/java/org/cytoscape/browser/internal/AttributeBrowserToolBar.java
2012-05-14 19:33:46 UTC (rev 29262)
+++
core3/impl/trunk/table-browser-impl/src/main/java/org/cytoscape/browser/internal/AttributeBrowserToolBar.java
2012-05-14 20:40:17 UTC (rev 29263)
@@ -579,6 +579,9 @@
formulaBuilderButton.addMouseListener(new
java.awt.event.MouseAdapter() {
public void
mouseClicked(java.awt.event.MouseEvent e) {
+ if (browserTableModel == null)
+ return;
+
final JTable table =
browserTableModel.getTable();
// Do not allow opening of the
formula builder dialog
--
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.