diff options
author | Arne Schwabe <arne@rfc2549.org> | 2013-08-13 12:24:26 +0200 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2013-08-13 12:24:26 +0200 |
commit | f21f4060370ea5a7b1cbd1fa7cad0cdce2a25134 (patch) | |
tree | a9a978240498bf24bfc92c80a2a1e26103d52a43 /src/de/blinkt/openvpn/VpnProfile.java | |
parent | a76d0962aebe0135d038c41795deb61af2bf78cd (diff) |
FIX NPE from Market console
Diffstat (limited to 'src/de/blinkt/openvpn/VpnProfile.java')
-rw-r--r-- | src/de/blinkt/openvpn/VpnProfile.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/de/blinkt/openvpn/VpnProfile.java b/src/de/blinkt/openvpn/VpnProfile.java index c427297c..879e34e4 100644 --- a/src/de/blinkt/openvpn/VpnProfile.java +++ b/src/de/blinkt/openvpn/VpnProfile.java @@ -140,7 +140,7 @@ public class VpnProfile implements Serializable { } public void clearDefaults() { - mServerName = "unkown"; + mServerName = "unknown"; mUsePull = false; mUseLzo = false; mUseDefaultRoute = false; @@ -155,6 +155,8 @@ public class VpnProfile implements Serializable { } public String getName() { + if (mName==null) + return "No profile name"; return mName; } |