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
This commit is contained in:
Alex Lin 2015-09-14 15:11:20 -05:00
parent 4f23b67f65
commit 197caee379

View File

@ -388,6 +388,7 @@ public class VariableServerConnection implements AutoCloseable {
case 6 : // INT case 6 : // INT
case 7 : // UNSIGNED INT case 7 : // UNSIGNED INT
case 21 : // ENUMERATED case 21 : // ENUMERATED
case 24 : // BAD REF
//typename = "INT"; //typename = "INT";
ival = (int)convertBinaryData(buffer, index, 4); ival = (int)convertBinaryData(buffer, index, 4);
vals[packet_count] += ival; vals[packet_count] += ival;