From 37f0d9b383c8369d3597637f6c0615b5ef47ae43 Mon Sep 17 00:00:00 2001 From: Zardosht Kasheff Date: Wed, 17 Apr 2013 00:01:40 -0400 Subject: [PATCH] addresses #648 dereferencing value in debug statement that could be NULL this fixes it. git-svn-id: file:///svn/mysql/tokudb-engine/src@3276 c7de825b-a66e-492c-adef-691d508d4ae1 --- storage/tokudb/ha_tokudb.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/tokudb/ha_tokudb.cc b/storage/tokudb/ha_tokudb.cc index dc46fa180ab..b1e84c76c68 100644 --- a/storage/tokudb/ha_tokudb.cc +++ b/storage/tokudb/ha_tokudb.cc @@ -1735,7 +1735,7 @@ int ha_tokudb::read_row(int error, uchar * buf, uint keynr, DBT * row, DBT * fou row = ¤t_row; } unpack_row(buf, row); - DBUG_DUMP("read row key", (uchar *) found_key->data, found_key->size); + if (found_key) { DBUG_DUMP("read row key", (uchar *) found_key->data, found_key->size); } TOKUDB_DBUG_RETURN(0); }