mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-31 06:05:12 +00:00
Fix NPE
This commit is contained in:
@@ -494,7 +494,9 @@ public class MprisActivity extends AppCompatActivity {
|
||||
|
||||
@Override
|
||||
protected void onSaveInstanceState(@NonNull Bundle outState) {
|
||||
outState.putString("targetPlayer", targetPlayer.getPlayer());
|
||||
if (targetPlayer != null) {
|
||||
outState.putString("targetPlayer", targetPlayer.getPlayer());
|
||||
}
|
||||
super.onSaveInstanceState(outState);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user