fixing nullpointerexeption in pathworker