Fix unchecked ptr dereference.

First crash in Bug 798225.
This commit is contained in:
John Ralls 2021-09-09 15:58:47 -07:00
parent d4bd600596
commit 1387d5f960

View File

@ -704,7 +704,7 @@ GncTaxTableList * gncTaxTableGetTables (QofBook *book)
if (!book) return NULL;
bi = qof_book_get_data (book, _GNC_MOD_NAME);
return bi->tables;
return bi ? bi->tables : NULL;
}
const char *gncTaxTableGetName (const GncTaxTable *table)