null+****@clear*****
null+****@clear*****
2011年 9月 28日 (水) 15:55:18 JST
Kouhei Sutou 2011-09-28 06:55:18 +0000 (Wed, 28 Sep 2011)
New Revision: c8be867c09faab8792a9e0928fb85e06e603107f
Log:
add NULL check on get_error_message().
Modified files:
ha_mroonga.cc
Modified: ha_mroonga.cc (+1 -1)
===================================================================
--- ha_mroonga.cc 2011-09-28 06:54:27 +0000 (df5774f)
+++ ha_mroonga.cc 2011-09-28 06:55:18 +0000 (6271213)
@@ -5185,7 +5185,7 @@ bool ha_mroonga::get_error_message(int error, String *buf)
MRN_DBUG_ENTER_METHOD();
// XXX: success is valid variable name?
bool success;
- if (share->wrapper_mode)
+ if (share && share->wrapper_mode)
{
success = wrapper_get_error_message(error, buf);
} else {