This question shows research effort; it is useful and clear
-4
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
I have discovered were the error was, was declaring the array as laneCar[] in one part of my code and laneCars[] elsewhere which was causing null pointer errors.