[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

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