diff options
author | cyBerta <cyberta@riseup.net> | 2019-07-12 18:10:36 +0200 |
---|---|---|
committer | cyBerta <cyberta@riseup.net> | 2019-07-12 18:10:36 +0200 |
commit | 6abe74c4344269b13abd169dca1961bdf86bfedb (patch) | |
tree | b87c223e015e42639cef48d4cc2a5fd8ddd7bc27 /app/src | |
parent | 045675a8cf2b7bf377ab86fa3196949e1684cc44 (diff) |
print stacktrace if json serialization of a VpnProfile fails
Diffstat (limited to 'app/src')
-rw-r--r-- | app/src/main/java/de/blinkt/openvpn/VpnProfile.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/src/main/java/de/blinkt/openvpn/VpnProfile.java b/app/src/main/java/de/blinkt/openvpn/VpnProfile.java index 7028bf62..7b9003aa 100644 --- a/app/src/main/java/de/blinkt/openvpn/VpnProfile.java +++ b/app/src/main/java/de/blinkt/openvpn/VpnProfile.java @@ -1131,8 +1131,9 @@ public class VpnProfile implements Serializable, Cloneable { try { return gson.toJson(this); } catch (Exception e) { - return null; + e.printStackTrace(); } + return null; } public static VpnProfile fromJson(String json) { |