diff --git a/shell/android/src/com/reicast/emulator/GL2JNIActivity.java b/shell/android/src/com/reicast/emulator/GL2JNIActivity.java index 72d0f8041..18344488c 100644 --- a/shell/android/src/com/reicast/emulator/GL2JNIActivity.java +++ b/shell/android/src/com/reicast/emulator/GL2JNIActivity.java @@ -520,7 +520,7 @@ public class GL2JNIActivity extends Activity { playerNum = -1; } - if (playerNum != -1) { + if (playerNum != null && playerNum != -1) { float x = -1, y = -1; String[] players = getResources().getStringArray(R.array.controllers); String id = "_" + players[playerNum].substring(