Project

General

Profile

« Previous | Next » 

Revision c020555e

Added by Leszek Koltunski almost 2 years ago

Do not crash when something's wrong with the JSON file - handle this gracefully, do not change the object then, and report this to Firebase.

View differences:

src/main/java/org/distorted/tutorials/TutorialObjectLibInterface.java
48 48
  public void onObjectCreated(long time) { }
49 49
  public void onReplaceModeDown(int cubit, int face) { }
50 50
  public void onReplaceModeUp() { }
51
  public void reportJSONError(String error, int ordinal) { }
51 52

  
52 53
///////////////////////////////////////////////////////////////////////////////////////////////////
53 54

  

Also available in: Unified diff