diff --git a/src/java/pt/lsts/neptus/mra/replay/MraVehiclePosHud.java b/src/java/pt/lsts/neptus/mra/replay/MraVehiclePosHud.java index 52458df7ce..adf5df2627 100644 --- a/src/java/pt/lsts/neptus/mra/replay/MraVehiclePosHud.java +++ b/src/java/pt/lsts/neptus/mra/replay/MraVehiclePosHud.java @@ -96,6 +96,11 @@ protected void loadIndex() { int msgType = index.getDefinitions().getMessageId("EstimatedState"); int lastIndex = 0; + int indexFirtsMsg = index.getFirstMessageOfType(msgType); + if (indexFirtsMsg < 0) { + return; + } + for (double time = startTime; time < endTime; time++) { int i = index.getMessageAtOrAfer(msgType, 0xFF, lastIndex, time); if (i != -1) {