first cut at turnon scripts for EasyTimer v2
[fw/altos] / altoslib / AltosJson.java
index 8f6897bb8efabad56da8a3007b4a081969d75ea6..1c3a342df12504130095def04323323e59877253 100644 (file)
@@ -16,7 +16,7 @@
  * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
  */
 
-package org.altusmetrum.altoslib_13;
+package org.altusmetrum.altoslib_14;
 
 import java.io.*;
 import java.util.*;
@@ -1218,6 +1218,10 @@ public class AltosJson extends JsonUtil {
                } else if (object instanceof String) {
                        type = type_string;
                        string = (String) object;
+               } else if (object == null) {
+                       System.out.printf("unexpected null object\n");
+               } else if (object.getClass() == null) {
+                       System.out.printf("unexpected null object class\n");
                } else if (object.getClass().isArray()) {
                        assert_array(true);