Revert "Throw if no accounts are found"

This reverts commit 12488c01d4.

Throws in the Login screen. Stupid idea.
This commit is contained in:
YuviPanda 2013-02-27 05:01:06 +05:30
parent 12488c01d4
commit f2a3666e0e

View file

@ -122,8 +122,6 @@ public class CommonsApplication extends Application {
Account[] allAccounts = accountManager.getAccountsByType(WikiAccountAuthenticator.COMMONS_ACCOUNT_TYPE);
if(allAccounts.length != 0) {
currentAccount = allAccounts[0];
} else {
throw new RuntimeException("No accounts found!");
}
}
return currentAccount;