There was a null pointer exception related to going into/leaving third person camera and the arrow annotation.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user