Fixed crash when playing to XBMC.

This commit is contained in:
Felix Ableitner 2013-12-16 02:23:48 +01:00
parent ea90337602
commit 1cbee26731

View file

@ -377,6 +377,9 @@ public class RemotePlayService extends Service implements RegistryListener {
@SuppressWarnings("rawtypes") @SuppressWarnings("rawtypes")
@Override @Override
public void received(ActionInvocation invocation, PositionInfo positionInfo) { public void received(ActionInvocation invocation, PositionInfo positionInfo) {
if (positionInfo.getTrackURI() == null)
return;
Message msg = Message.obtain(null, Provider.MSG_STATUS_INFO, 0, 0); Message msg = Message.obtain(null, Provider.MSG_STATUS_INFO, 0, 0);
Builder status = null; Builder status = null;