diff --git a/app/src/common/shared/org/mozilla/vrbrowser/browser/engine/SessionState.java b/app/src/common/shared/org/mozilla/vrbrowser/browser/engine/SessionState.java index 07ae10040..6989031a9 100644 --- a/app/src/common/shared/org/mozilla/vrbrowser/browser/engine/SessionState.java +++ b/app/src/common/shared/org/mozilla/vrbrowser/browser/engine/SessionState.java @@ -96,6 +96,9 @@ public void write(JsonWriter out, T value) throws IOException { } } } + if (session.mSettings != null) { + out.name("mSettings").jsonValue(gson.toJson(session.mSettings)); + } out.endObject(); } else { @@ -110,16 +113,7 @@ public void write(JsonWriter out, T value) throws IOException { public T read(JsonReader in) throws IOException { try { return delegate.read(in); - - } catch (IOException e) { - in.skipValue(); - return null; - - } catch (IllegalStateException e) { - in.skipValue(); - return null; - - } catch (JsonSyntaxException e) { + } catch (Exception e) { in.skipValue(); return null; }