mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-07 05:24:46 +01:00
test to avoid NPE
This commit is contained in:
parent
a5387be742
commit
c6d3759373
1 changed files with 3 additions and 1 deletions
|
@ -722,7 +722,9 @@ public class ConnStatusHandler {
|
||||||
fcmMsg );
|
fcmMsg );
|
||||||
break;
|
break;
|
||||||
case COMMS_CONN_MQTT:
|
case COMMS_CONN_MQTT:
|
||||||
result = String.format("DevID: %s", addr.mqtt_devID );
|
if ( null != addr ) {
|
||||||
|
result = String.format("DevID: %s", addr.mqtt_devID );
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case COMMS_CONN_P2P:
|
case COMMS_CONN_P2P:
|
||||||
result = WiDirService.formatNetStateInfo();
|
result = WiDirService.formatNetStateInfo();
|
||||||
|
|
Loading…
Reference in a new issue