Skip to content

Commit

Permalink
(android) Fix NullPointerException in AudioPlayer.readyPlayer
Browse files Browse the repository at this point in the history
 This closes #129
  • Loading branch information
TommiKetola authored and shazron committed Feb 25, 2017
1 parent 88a6930 commit 41c2080
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/android/AudioPlayer.java
Expand Up @@ -590,7 +590,7 @@ private boolean readyPlayer(String file) {
return true;
case MEDIA_STOPPED:
//if we are readying the same file
if (this.audioFile.compareTo(file) == 0) {
if (file!=null && this.audioFile.compareTo(file) == 0) {
//maybe it was recording?
if (player == null) {
this.player = new MediaPlayer();
Expand Down

0 comments on commit 41c2080

Please sign in to comment.