summaryrefslogtreecommitdiff
path: root/src/de/blinkt
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2013-08-13 12:24:26 +0200
committerArne Schwabe <arne@rfc2549.org>2013-08-13 12:24:26 +0200
commitf21f4060370ea5a7b1cbd1fa7cad0cdce2a25134 (patch)
treea9a978240498bf24bfc92c80a2a1e26103d52a43 /src/de/blinkt
parenta76d0962aebe0135d038c41795deb61af2bf78cd (diff)
FIX NPE from Market console
Diffstat (limited to 'src/de/blinkt')
-rw-r--r--src/de/blinkt/openvpn/VpnProfile.java4
-rw-r--r--src/de/blinkt/openvpn/fragments/Settings_Authentication.java2
2 files changed, 4 insertions, 2 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;
}
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;