fix of NullPointerException in task reassignment