Fixed NPE in line number method