summaryrefslogtreecommitdiff
path: root/app/src/main/java
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2019-07-12 18:10:36 +0200
committercyBerta <cyberta@riseup.net>2019-07-12 18:10:36 +0200
commit6abe74c4344269b13abd169dca1961bdf86bfedb (patch)
treeb87c223e015e42639cef48d4cc2a5fd8ddd7bc27 /app/src/main/java
parent045675a8cf2b7bf377ab86fa3196949e1684cc44 (diff)
print stacktrace if json serialization of a VpnProfile fails
Diffstat (limited to 'app/src/main/java')
-rw-r--r--app/src/main/java/de/blinkt/openvpn/VpnProfile.java3
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) {