Prevent crash

This commit is contained in:
M66B
2021-03-21 07:39:45 +01:00
parent 8c2f8e3265
commit fdfaf7357c
3 changed files with 24 additions and 17 deletions

View File

@@ -45,6 +45,7 @@ import androidx.preference.PreferenceManager;
import com.google.android.material.floatingactionbutton.FloatingActionButton;
import java.util.ArrayList;
import java.util.List;
public class FragmentDialogIdentity extends FragmentDialogBase {
@@ -133,6 +134,9 @@ public class FragmentDialogIdentity extends FragmentDialogBase {
@Override
protected void onExecuted(Bundle args, List<TupleIdentityEx> identities) {
if (identities == null)
identities = new ArrayList<>();
AdapterIdentitySelect iadapter = new AdapterIdentitySelect(getContext(), identities);
spIdentity.setAdapter(iadapter);