Commit 190d5837 authored by Petri Hintukainen's avatar Petri Hintukainen

Fix null pointer dereference

parent b228a6ad
......@@ -294,7 +294,11 @@ public class Handler extends BDHandler {
protected void doEndOfMediaReached(int playlist) {
synchronized (this) {
if (locator == null || locator.getPlayListId() != playlist) {
if (locator == null) {
System.err.println("endOfMedia(" + playlist + ") ignored: no current locator");
return;
}
if (locator.getPlayListId() != playlist) {
System.err.println("endOfMedia ignored: playlist does not match (" + playlist + " != " + locator.getPlayListId());
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment