Check qtables NULL pointer