Check qtables NULL pointer
Merge pull request #216 from angelnu/master

Check missing qtables parameter