Make sure we get a stacktrace in the log
(so we don't have to guess where it happened) #807
This commit is contained in:
parent
47bdeea257
commit
976942757f
|
@ -113,7 +113,7 @@ public class GBMusicControlReceiver extends BroadcastReceiver {
|
||||||
MediaController controller = controllers.get(0);
|
MediaController controller = controllers.get(0);
|
||||||
audioPlayer = controller.getPackageName();
|
audioPlayer = controller.getPackageName();
|
||||||
} catch (IndexOutOfBoundsException e) {
|
} catch (IndexOutOfBoundsException e) {
|
||||||
LOG.error("IndexOutOfBoundsException: " + e.getMessage());
|
LOG.error("No media controller available", e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return audioPlayer;
|
return audioPlayer;
|
||||||
|
|
Loading…
Reference in New Issue