[open-ils-commits] r13872 - trunk/Open-ILS/src/c-apps (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Aug 18 14:57:17 EDT 2009
Author: erickson
Date: 2009-08-18 14:57:12 -0400 (Tue, 18 Aug 2009)
New Revision: 13872
Modified:
trunk/Open-ILS/src/c-apps/oils_cstore.c
Log:
field_type may be null, check it
Modified: trunk/Open-ILS/src/c-apps/oils_cstore.c
===================================================================
--- trunk/Open-ILS/src/c-apps/oils_cstore.c 2009-08-18 17:45:49 UTC (rev 13871)
+++ trunk/Open-ILS/src/c-apps/oils_cstore.c 2009-08-18 18:57:12 UTC (rev 13872)
@@ -1505,7 +1505,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