diff --git a/sql/sql_reload.cc b/sql/sql_reload.cc index ef699962777..f3909913c5b 100644 --- a/sql/sql_reload.cc +++ b/sql/sql_reload.cc @@ -314,7 +314,7 @@ bool reload_acl_and_cache(THD *thd, unsigned long long options, } #ifdef WITH_WSREP - if (thd->wsrep_applier) + if (thd && thd->wsrep_applier) { /* In case of applier thread, do not wait for table share(s) to be