Fix crashes when remote accounts are null

This commit is contained in:
stom79 2018-09-04 07:35:35 +02:00
parent e935426495
commit a38f11580e
1 changed files with 3 additions and 0 deletions

View File

@ -216,6 +216,9 @@ public class CrossActions {
@Override
protected void onPostExecute(Void result) {
List<Account> remoteAccounts = response.getAccounts();
if( response == null){
return;
}
if( remoteAccounts != null && remoteAccounts.size() > 0) {
Intent intent = new Intent(context, ShowAccountActivity.class);
Bundle b = new Bundle();