Fixed memory access errors with null line.