summaryrefslogtreecommitdiff
path: root/src/de
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2012-07-23 12:34:27 +0200
committerArne Schwabe <arne@rfc2549.org>2012-07-23 12:34:27 +0200
commit83007ae1abc16de9489431cef599e9d60a518d6a (patch)
tree226949d5ebc149b1e0089159a4d959f59069bff7 /src/de
parent07cacbf2b3300969db3620a59b2623c5e3ebb051 (diff)
check for extrainfo == null
Diffstat (limited to 'src/de')
-rw-r--r--src/de/blinkt/openvpn/NetworkSateReceiver.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/de/blinkt/openvpn/NetworkSateReceiver.java b/src/de/blinkt/openvpn/NetworkSateReceiver.java
index 0758cf3a..6584e0fa 100644
--- a/src/de/blinkt/openvpn/NetworkSateReceiver.java
+++ b/src/de/blinkt/openvpn/NetworkSateReceiver.java
@@ -33,8 +33,12 @@ public class NetworkSateReceiver extends BroadcastReceiver {
String subtype = networkInfo.getSubtypeName();
if(subtype==null)
subtype = "";
+ String extrainfo = networkInfo.getExtraInfo();
+ if(extrainfo==null)
+ extrainfo="";
+
netstatestring = String.format("%2$s %4$s to %1$s %3$s",networkInfo.getTypeName(),
- networkInfo.getDetailedState(),networkInfo.getExtraInfo(),subtype );
+ networkInfo.getDetailedState(),extrainfo,subtype );
}
if(networkInfo!=null && networkInfo.getState() == State.CONNECTED) {