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:
Mike Lockwood
2010-02-17 07:40:50 -05:00
parent 0a05f5dfeb
commit a4437fc93a

View File

@@ -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;