Skip to content

Commit

Permalink
Fix NPE reported on Google Play, occurring in RemoteFragment.SetNowPl…
Browse files Browse the repository at this point in the history
…ayingInfo, because the ListType.ItemsAll might be null after a call to Player.GetItem
  • Loading branch information
SyncedSynapse committed Dec 4, 2017
1 parent 4310d11 commit 7e519eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/org/xbmc/kore/jsonrpc/type/ListType.java
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ public ItemBase(JsonNode node) {
track = JsonUtils.intFromJsonNode(node, TRACK, 0);
trailer = JsonUtils.stringFromJsonNode(node, TRAILER, null);
tvshowid = JsonUtils.intFromJsonNode(node, TVSHOWID, -1);
type = JsonUtils.stringFromJsonNode(node, TYPE, null);
type = JsonUtils.stringFromJsonNode(node, TYPE, TYPE_UNKNOWN);
// uniqueid = getStringMap(node, UNIQUEID);
votes = JsonUtils.stringFromJsonNode(node, VOTES, null);
watchedepisodes = JsonUtils.intFromJsonNode(node, WATCHEDEPISODES, -1);
Expand Down

0 comments on commit 7e519eb

Please sign in to comment.