Merge "Catch NPE in AttachmentDownloadService"

This commit is contained in:
Marc Blank 2011-07-28 14:22:44 -07:00 committed by Android (Google) Code Review
commit 1f825aa538

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