am 5440a405: Prevent NPE

* commit '5440a405325c118ecab7ab4f124955ab3c92c245':
  Prevent NPE
This commit is contained in:
Paul Westbrook 2013-08-16 20:32:02 -07:00 committed by Android Git Automerger
commit fafda74387
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ public abstract class EmailContent {
public static Uri ACCOUNT_CHECK_URI;
public static String PROVIDER_PERMISSION;
public static void init(Context context) {
public static synchronized void init(Context context) {
if (AUTHORITY == null) {
PACKAGE_NAME = context.getPackageName();
EMAIL_PACKAGE_NAME = PACKAGE_NAME;