You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xmlbeans.apache.org by da...@apache.org on 2004/04/02 04:02:15 UTC
cvs commit: xml-xmlbeans/v1/src/xmlstore/org/apache/xmlbeans/impl/store Cursor.java
daveremy 2004/04/01 18:02:15
Modified: v1/src/xmlstore/org/apache/xmlbeans/impl/store Cursor.java
Log:
add a check if Cursor is disposed in changeNotification()
on behalf of kevin krouse
CR: ericvas
Revision Changes Path
1.9 +9 -6 xml-xmlbeans/v1/src/xmlstore/org/apache/xmlbeans/impl/store/Cursor.java
Index: Cursor.java
===================================================================
RCS file: /home/cvs/xml-xmlbeans/v1/src/xmlstore/org/apache/xmlbeans/impl/store/Cursor.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- Cursor.java 16 Mar 2004 01:44:24 -0000 1.8
+++ Cursor.java 2 Apr 2004 02:02:15 -0000 1.9
@@ -2871,14 +2871,17 @@
public void changeNotification ( )
{
- if (_data._selections != null)
+ if (!isDisposed())
{
- _data._selections.size(); // Force a full selection
- _data._selections.cursify( getRoot() );
- }
+ if (_data._selections != null)
+ {
+ _data._selections.size(); // Force a full selection
+ _data._selections.cursify( getRoot() );
+ }
- if (_data._stack != null)
- _data._stack.cursify( getRoot() );
+ if (_data._stack != null)
+ _data._stack.cursify( getRoot() );
+ }
}
public void selectPath ( String path, XmlOptions options )
---------------------------------------------------------------------
To unsubscribe, e-mail: xmlbeans-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-cvs-help@xml.apache.org