[open-ils-commits] r15590 - trunk/Open-ILS/src/c-apps (scottmk)

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Feb 18 16:10:18 EST 2010


Author: scottmk
Date: 2010-02-18 16:10:13 -0500 (Thu, 18 Feb 2010)
New Revision: 15590

Modified:
   trunk/Open-ILS/src/c-apps/oils_cstore.c
Log:
In doUpdate(): check field_object for NULL before dereferencing it.

M    Open-ILS/src/c-apps/oils_cstore.c


Modified: trunk/Open-ILS/src/c-apps/oils_cstore.c
===================================================================
--- trunk/Open-ILS/src/c-apps/oils_cstore.c	2010-02-18 21:02:59 UTC (rev 15589)
+++ trunk/Open-ILS/src/c-apps/oils_cstore.c	2010-02-18 21:10:13 UTC (rev 15590)
@@ -4995,7 +4995,7 @@
 				field_object,
 				(char*)oilsIDLFindPath("/%s/primarykey", field_object->classname)
 			);
-		} else if( JSON_BOOL == field_object->type ) {
+		} else if( field_object && JSON_BOOL == field_object->type ) {
 			if( jsonBoolIsTrue( field_object ) )
 				value = strdup( "t" );
 			else



More information about the open-ils-commits mailing list