[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