[Android] Fix a null pointer exception.

This commit is contained in:
Ryan Houdek 2013-07-14 16:31:47 -05:00
parent ea146627e6
commit c86480d082
1 changed files with 2 additions and 0 deletions

View File

@ -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