resolved conflicts for Email MessagingController null check from donut to master

This commit is contained in:
Brett Chabot 2009-07-17 16:18:41 -07:00
commit 035ce8bcd1
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);