[rkward-cvs] SF.net SVN: rkward:[2890] trunk/rkward/rkward/core/rkvariable.cpp

tfry at users.sourceforge.net tfry at users.sourceforge.net
Tue Jun 22 11:53:07 UTC 2010


Revision: 2890
          http://rkward.svn.sourceforge.net/rkward/?rev=2890&view=rev
Author:   tfry
Date:     2010-06-22 11:53:07 +0000 (Tue, 22 Jun 2010)

Log Message:
-----------
Fix corner-case crash

Modified Paths:
--------------
    trunk/rkward/rkward/core/rkvariable.cpp

Modified: trunk/rkward/rkward/core/rkvariable.cpp
===================================================================
--- trunk/rkward/rkward/core/rkvariable.cpp	2010-06-21 04:17:48 UTC (rev 2889)
+++ trunk/rkward/rkward/core/rkvariable.cpp	2010-06-22 11:53:07 UTC (rev 2890)
@@ -123,7 +123,8 @@
 	if (command->getFlags () == ROBJECT_UDPATE_STRUCTURE_COMMAND) {
 		RObject::rCommandDone (command);
 	} else if (command->getFlags () == GET_DATA_COMMAND) {
-		RK_ASSERT (data);
+		if (!data) return;	// this can happen, if the editor is closed while a data update is still queued.
+
 		// prevent resyncing of data
 		lockSyncing (true);
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the rkward-tracker mailing list