Catch NPE in AttachmentDownloadService

%$!@#*&%

Bug: 5055519
Change-Id: Ie155c8d0f9931b51613f7d77e4545531bc148964
This commit is contained in:
Marc Blank 2011-07-27 15:53:51 -07:00
parent 786285b3a6
commit 41c63a05eb

View File

@ -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();
}
}