android: Fix crash when opening list of apps for new profiles

Fixes: 150dc5ab64 ("android: Make selected apps read-only")
This commit is contained in:
Tobias Brunner
2024-08-06 18:01:54 +02:00
parent 8a14c20ec7
commit 81041b55d2
@@ -380,7 +380,7 @@ public class VpnProfileDetailActivity extends AppCompatActivity
{
Intent intent = new Intent(VpnProfileDetailActivity.this, SelectedApplicationsActivity.class);
intent.putExtra(VpnProfileDataSource.KEY_SELECTED_APPS_LIST, new ArrayList<>(mSelectedApps));
intent.putExtra(VpnProfileDataSource.KEY_READ_ONLY, mProfile.isReadOnly());
intent.putExtra(VpnProfileDataSource.KEY_READ_ONLY, mProfile != null && mProfile.isReadOnly());
mSelectApplications.launch(intent);
}
});