From 197caee37917c36b3c5c51c6ee9ed5c7d5cf6761 Mon Sep 17 00:00:00 2001 From: Alex Lin Date: Mon, 14 Sep 2015 15:11:20 -0500 Subject: [PATCH] MTV/variable server crashes if checkpoint has less malfunctions then currently running sim Added a case statement for the bad ref type to the binary data handler. We handle a bad ref as an integer, because that is what the sim sends us. This fixes MTV. refs #117 --- .../java/src/trick/common/utils/VariableServerConnection.java | 1 + 1 file changed, 1 insertion(+) diff --git a/trick_source/java/src/trick/common/utils/VariableServerConnection.java b/trick_source/java/src/trick/common/utils/VariableServerConnection.java index b5ec4bf6..04915b4c 100644 --- a/trick_source/java/src/trick/common/utils/VariableServerConnection.java +++ b/trick_source/java/src/trick/common/utils/VariableServerConnection.java @@ -388,6 +388,7 @@ public class VariableServerConnection implements AutoCloseable { case 6 : // INT case 7 : // UNSIGNED INT case 21 : // ENUMERATED + case 24 : // BAD REF //typename = "INT"; ival = (int)convertBinaryData(buffer, index, 4); vals[packet_count] += ival;