summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2017-01-09 18:48:08 +0100
committerArne Schwabe <arne@rfc2549.org>2017-01-09 18:48:08 +0100
commit3423d5c6321325c3d4a74b9491e63ce6858955c3 (patch)
tree0555a1e516dcb49f50733550336bdf68c2a96fbf
parentae9e26fb67f83ae27b348c9d23fd982b7ec426d6 (diff)
Fix crash on empty profile name
-rw-r--r--main/src/main/java/de/blinkt/openvpn/VpnProfile.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/main/java/de/blinkt/openvpn/VpnProfile.java b/main/src/main/java/de/blinkt/openvpn/VpnProfile.java
index d32ed27e..ceca611e 100644
--- a/main/src/main/java/de/blinkt/openvpn/VpnProfile.java
+++ b/main/src/main/java/de/blinkt/openvpn/VpnProfile.java
@@ -227,7 +227,7 @@ public class VpnProfile implements Serializable, Cloneable {
}
public String getName() {
- if (mName == null)
+ if (TextUtils.isEmpty(mName))
return "No profile name";
return mName;
}