test to avoid NPE

This commit is contained in:
Eric House 2020-09-12 15:53:11 -07:00
parent a5387be742
commit c6d3759373

View file

@ -722,7 +722,9 @@ public class ConnStatusHandler {
fcmMsg );
break;
case COMMS_CONN_MQTT:
result = String.format("DevID: %s", addr.mqtt_devID );
if ( null != addr ) {
result = String.format("DevID: %s", addr.mqtt_devID );
}
break;
case COMMS_CONN_P2P:
result = WiDirService.formatNetStateInfo();