From f21f4060370ea5a7b1cbd1fa7cad0cdce2a25134 Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Tue, 13 Aug 2013 12:24:26 +0200 Subject: FIX NPE from Market console --- src/de/blinkt/openvpn/VpnProfile.java | 4 +++- src/de/blinkt/openvpn/fragments/Settings_Authentication.java | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src') 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; } diff --git a/src/de/blinkt/openvpn/fragments/Settings_Authentication.java b/src/de/blinkt/openvpn/fragments/Settings_Authentication.java index 9aed464d..7c62cd30 100644 --- a/src/de/blinkt/openvpn/fragments/Settings_Authentication.java +++ b/src/de/blinkt/openvpn/fragments/Settings_Authentication.java @@ -157,7 +157,7 @@ public class Settings_Authentication extends OpenVpnPreferencesFragment implemen } @Override - public boolean onPreferenceClick(Preference preference) { + public boolean P(Preference preference) { startFileDialog(); return true; -- cgit v1.2.3