There was a null pointer exception related to going into/leaving third person camera and the arrow annotation.

main
fjc40 8 years ago
parent f308f5b8f3
commit 536428ce16

@ -441,9 +441,12 @@ public class RaceViewController extends Controller {
private void removeThirdPersonAnnotations() { private void removeThirdPersonAnnotations() {
viewSubjects.remove(nextMarkArrow); viewSubjects.remove(nextMarkArrow);
if (arrowToNextMark != null) {
arrowToNextMark.stop(); arrowToNextMark.stop();
} }
}
/** /**
* Swap the colour of the next mark to pass with the last mark passed * Swap the colour of the next mark to pass with the last mark passed
* @param leg boat has started on * @param leg boat has started on

Loading…
Cancel
Save