From c5d4de38a044ba5cde038bcea1ce1ac2ff527f92 Mon Sep 17 00:00:00 2001 From: scottmk Date: Thu, 18 Feb 2010 21:10:13 +0000 Subject: [PATCH] In doUpdate(): check field_object for NULL before dereferencing it. 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/src/c-apps/oils_cstore.c b/Open-ILS/src/c-apps/oils_cstore.c index 6c332e7a02..37c75f52ef 100644 --- a/Open-ILS/src/c-apps/oils_cstore.c +++ b/Open-ILS/src/c-apps/oils_cstore.c @@ -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 -- 2.11.0