resolved null pointer exception bug when resolving table name