File tree 1 file changed +5
-3
lines changed
src/com/erikpaluka/multileap/input
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ public class LeapParser {
31
31
JSONParser jParser ;
32
32
final int ID_ADDITION = 10_000_000 ;
33
33
public ControllerObj controller ;
34
-
34
+ public boolean exceptionOccurred = false ;
35
35
36
36
public LeapParser () {
37
37
jParser = new JSONParser ();
@@ -43,7 +43,8 @@ public FrameObj parse(String msg, ControllerObj controller) {
43
43
this .controller = controller ;
44
44
45
45
try {
46
- JSONAdapter jAdapter = new JSONAdapter (jParser .parse (msg ));
46
+ Object parsedMsg = jParser .parse (msg );
47
+ JSONAdapter jAdapter = new JSONAdapter (parsedMsg );
47
48
48
49
if (jAdapter .containsKey ("currentFrameRate" )) {
49
50
@@ -78,8 +79,9 @@ public FrameObj parse(String msg, ControllerObj controller) {
78
79
return frame ;
79
80
}
80
81
} catch (ParseException e ) {
82
+ exceptionOccurred = true ;
81
83
System .out .println ("ParseException for LeapVM message." );
82
- e .printStackTrace ();
84
+ // e.printStackTrace();
83
85
}
84
86
85
87
return null ;
You can’t perform that action at this time.
0 commit comments