Merge change 7780

* changes:
  resolved conflicts for Email MessagingController null check from donut to master
This commit is contained in:
Android (Google) Code Review 2009-07-17 16:51:47 -07:00
commit d10ffd33de
1 changed files with 2 additions and 0 deletions

View File

@ -457,6 +457,8 @@ public class MessagingController implements Runnable {
try {
Store.StoreInfo info = Store.StoreInfo.getStoreInfo(account.getStoreUri(mContext),
mContext);
// check for null to handle semi-initialized accounts created during unit tests
// store info should not be null in production scenarios
if (info != null) {
LocalStore localStore = (LocalStore) Store.getInstance(
account.getLocalStoreUri(mContext), mContext, null);