In doUpdate(): check field_object for NULL before dereferencing it.
authorscottmk <scottmk@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 18 Feb 2010 21:10:13 +0000 (21:10 +0000)
committerscottmk <scottmk@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 18 Feb 2010 21:10:13 +0000 (21:10 +0000)
M    Open-ILS/src/c-apps/oils_cstore.c

git-svn-id: svn://svn.open-ils.org/ILS/trunk@15590 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index 6c332e7..37c75f5 100644 (file)
@@ -4995,7 +4995,7 @@ static jsonObject* doUpdate(osrfMethodContext* ctx, int* err ) {
                                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