Null pointer exception problem in path comparator solved.