mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
[Android] Fix a null pointer exception.
This commit is contained in:
parent
ea146627e6
commit
c86480d082
@ -29,6 +29,8 @@ public class InputConfigActivity extends ListActivity {
|
||||
|
||||
static public String getInputDesc(InputDevice input)
|
||||
{
|
||||
if (input == null)
|
||||
return "null"; // Happens when the inputdevice is from an unknown source
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN)
|
||||
return input.getDescriptor();
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user