Author: mes
Date: 2009-12-09 14:16:09 -0800 (Wed, 09 Dec 2009)
New Revision: 18704
Modified:
corelibs/trunk/ding/src/ding/view/InnerCanvas.java
Log:
fixed a potential NPE
Modified: corelibs/trunk/ding/src/ding/view/InnerCanvas.java
===================================================================
--- corelibs/trunk/ding/src/ding/view/InnerCanvas.java 2009-12-09 05:29:48 UTC
(rev 18703)
+++ corelibs/trunk/ding/src/ding/view/InnerCanvas.java 2009-12-09 22:16:09 UTC
(rev 18704)
@@ -767,12 +767,14 @@
if (m_currMouseButton == 2)
m_currMouseButton = 0;
- m_undoable_edit.post();
+ if (m_undoable_edit != null)
+ m_undoable_edit.post();
} else if (e.getButton() == MouseEvent.BUTTON3) {
if (m_currMouseButton == 3)
m_currMouseButton = 0;
- m_undoable_edit.post();
+ if (m_undoable_edit != null)
+ m_undoable_edit.post();
}
}
--
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.