temporary fix crash

This commit is contained in:
houxg
2016-11-21 16:31:09 +08:00
parent 475bf55e38
commit 1b6329fe8b

View File

@@ -26,14 +26,14 @@ public class ApiProvider {
}
public static ApiProvider getInstance() {
Account account = AccountService.getCurrent();
if (account != null && SingletonHolder.INSTANCE.mApiRetrofit == null) {
SingletonHolder.INSTANCE.init(account.getHost());
}
return SingletonHolder.INSTANCE;
}
private ApiProvider() {
Account account = AccountService.getCurrent();
if (account != null) {
init(account.getHost());
}
}
public void init(String host) {