Skip to content

Commit 41c2080

Browse files
TommiKetolashazron
authored andcommitted
(android) Fix NullPointerException in AudioPlayer.readyPlayer
This closes apache#129
1 parent 88a6930 commit 41c2080

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/android/AudioPlayer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ private boolean readyPlayer(String file) {
590590
return true;
591591
case MEDIA_STOPPED:
592592
//if we are readying the same file
593-
if (this.audioFile.compareTo(file) == 0) {
593+
if (file!=null && this.audioFile.compareTo(file) == 0) {
594594
//maybe it was recording?
595595
if (player == null) {
596596
this.player = new MediaPlayer();

0 commit comments

Comments
 (0)