MDEV-9224: postfix - thd can be null in reload_acl_and_cache()

This commit is contained in:
Nirbhay Choubey 2015-12-23 09:51:32 -05:00
parent e6c0f25f04
commit 89a264809d

View file

@ -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