Handle NULL string pointer as a NULL guid

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18855 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Phil Longstaff 2010-03-06 14:32:26 +00:00
parent 2e40a324b3
commit c4e929a9ae

View File

@ -1481,7 +1481,7 @@ load_guid( const GncSqlBackend* be, GncSqlRow* row,
g_return_if_fail( table_row->gobj_param_name != NULL || setter != NULL );
val = gnc_sql_row_get_value_at_col_name( row, table_row->col_name );
if( val == NULL ) {
if( val == NULL || g_value_get_string( val ) == NULL ) {
pGuid = NULL;
} else {
(void)string_to_guid( g_value_get_string( val ), &guid );