Getting null pter exceptions in queueWatcher