Fix crashes when remote accounts are null
This commit is contained in:
parent
e935426495
commit
a38f11580e
|
@ -216,6 +216,9 @@ public class CrossActions {
|
||||||
@Override
|
@Override
|
||||||
protected void onPostExecute(Void result) {
|
protected void onPostExecute(Void result) {
|
||||||
List<Account> remoteAccounts = response.getAccounts();
|
List<Account> remoteAccounts = response.getAccounts();
|
||||||
|
if( response == null){
|
||||||
|
return;
|
||||||
|
}
|
||||||
if( remoteAccounts != null && remoteAccounts.size() > 0) {
|
if( remoteAccounts != null && remoteAccounts.size() > 0) {
|
||||||
Intent intent = new Intent(context, ShowAccountActivity.class);
|
Intent intent = new Intent(context, ShowAccountActivity.class);
|
||||||
Bundle b = new Bundle();
|
Bundle b = new Bundle();
|
||||||
|
|
Loading…
Reference in New Issue