From 1cbee26731167dedb27edcddc8520f6ac98c0c8e Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Mon, 16 Dec 2013 02:23:48 +0100 Subject: [PATCH] Fixed crash when playing to XBMC. --- src/com/github/nutomic/controldlna/upnp/RemotePlayService.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/com/github/nutomic/controldlna/upnp/RemotePlayService.java b/src/com/github/nutomic/controldlna/upnp/RemotePlayService.java index 0b43240..bcb14cb 100644 --- a/src/com/github/nutomic/controldlna/upnp/RemotePlayService.java +++ b/src/com/github/nutomic/controldlna/upnp/RemotePlayService.java @@ -377,6 +377,9 @@ public class RemotePlayService extends Service implements RegistryListener { @SuppressWarnings("rawtypes") @Override public void received(ActionInvocation invocation, PositionInfo positionInfo) { + if (positionInfo.getTrackURI() == null) + return; + Message msg = Message.obtain(null, Provider.MSG_STATUS_INFO, 0, 0); Builder status = null;