Fix null pointer exception in connectivity service broadcast receiver.
Change-Id: I80c7175ffd1a323a02201395ff6092e2ab0fdd1c Signed-off-by: Mike Lockwood <lockwood@android.com>
This commit is contained in:
@@ -431,7 +431,7 @@ public class Tethering extends INetworkManagementEventObserver.Stub {
|
||||
try {
|
||||
NetworkInfo info = service.getNetworkInfo(ConnectivityManager.TYPE_MOBILE_DUN);
|
||||
int msg;
|
||||
if (info.isConnected() == true) {
|
||||
if (info != null && info.isConnected() == true) {
|
||||
msg = TetherMasterSM.CMD_CELL_DUN_ENABLED;
|
||||
} else {
|
||||
msg = TetherMasterSM.CMD_CELL_DUN_DISABLED;
|
||||
|
||||
Reference in New Issue
Block a user