diff options
-rw-r--r-- | core/java/android/net/MobileDataStateTracker.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/java/android/net/MobileDataStateTracker.java b/core/java/android/net/MobileDataStateTracker.java index e74db67..f067392 100644 --- a/core/java/android/net/MobileDataStateTracker.java +++ b/core/java/android/net/MobileDataStateTracker.java @@ -205,8 +205,8 @@ public class MobileDataStateTracker implements NetworkStateTracker { setDetailedState(DetailedState.DISCONNECTED, reason, apnName); if (mNetworkProperties != null) { - NetworkUtils.resetConnections(mNetworkProperties.getInterface(). - getName()); + String iface = mNetworkProperties.getInterfaceName(); + if (iface != null) NetworkUtils.resetConnections(iface); } // TODO - check this // can't do this here - ConnectivityService needs it to clear stuff |