fix npe when no ignore file