From 41c63a05eb04e5e1c6e12676768fd6e40dcbe913 Mon Sep 17 00:00:00 2001 From: Marc Blank Date: Wed, 27 Jul 2011 15:53:51 -0700 Subject: [PATCH] Catch NPE in AttachmentDownloadService %$!@#*&% Bug: 5055519 Change-Id: Ie155c8d0f9931b51613f7d77e4545531bc148964 --- src/com/android/email/service/AttachmentDownloadService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/email/service/AttachmentDownloadService.java b/src/com/android/email/service/AttachmentDownloadService.java index 9a6361e73..e8b3c4d4e 100644 --- a/src/com/android/email/service/AttachmentDownloadService.java +++ b/src/com/android/email/service/AttachmentDownloadService.java @@ -427,7 +427,7 @@ public class AttachmentDownloadService extends Service implements Runnable { } } // Check whether we can start new downloads... - if (mConnectivityManager.hasConnectivity()) { + if (mConnectivityManager != null && mConnectivityManager.hasConnectivity()) { processQueue(); } }