diff options
author | Arne Schwabe <arne@rfc2549.org> | 2012-07-23 12:34:27 +0200 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2012-07-23 12:34:27 +0200 |
commit | 3112a0b79549c7915355fe57e24424e2d3f92bb4 (patch) | |
tree | 283fc6909f674d4d7421f91d1b26ff9673b61ae4 /src/de | |
parent | e7d9fd98ac245babbd6ecf4c7e1d802b70494dc2 (diff) |
check for extrainfo == null
Diffstat (limited to 'src/de')
-rw-r--r-- | src/de/blinkt/openvpn/NetworkSateReceiver.java | 6 |
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) {
|