From 99c780aabc8992f451339d51d1be1b27faba3528 Mon Sep 17 00:00:00 2001 From: Balint Kovacs Date: Tue, 14 Jun 2011 12:15:56 +0200 Subject: [PATCH] Causes NullPointerException Revert "Enhanced logging for Network status change, so that we are able to" This reverts commit c8a4d2a45999d8ce0d339f37b495b21d5d1b9ad8. --- src/hu/blint/ssldroid/NetworkChangeReceiver.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hu/blint/ssldroid/NetworkChangeReceiver.java b/src/hu/blint/ssldroid/NetworkChangeReceiver.java index 8121763..1722000 100644 --- a/src/hu/blint/ssldroid/NetworkChangeReceiver.java +++ b/src/hu/blint/ssldroid/NetworkChangeReceiver.java @@ -13,13 +13,13 @@ public class NetworkChangeReceiver extends BroadcastReceiver { public void onReceive(Context context, Intent intent) { ConnectivityManager connectivityManager = (ConnectivityManager) context.getSystemService( Context.CONNECTIVITY_SERVICE ); NetworkInfo activeNetInfo = connectivityManager.getActiveNetworkInfo(); - Log.d("SSLDroid", activeNetInfo.toString()); if ( activeNetInfo == null ) { Intent i = new Intent(); i.setAction("hu.blint.ssldroid.SSLDroid"); context.stopService(i); return; } + Log.d("SSLDroid", activeNetInfo.toString()); if (activeNetInfo.isAvailable()) { Intent i = new Intent(); i.setAction("hu.blint.ssldroid.SSLDroid");