Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[Android] Fix a null pointer exception.
  • Loading branch information
Sonicadvance1 committed Jul 14, 2013
1 parent ea14662 commit c86480d
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -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
Expand Down

0 comments on commit c86480d

Please sign in to comment.