ensure vars are valid - fixes crashlog lines 491 + 495
This commit is contained in:
parent
9638d2410e
commit
a39f52cd51
|
@ -539,6 +539,7 @@ sub Main (args as dynamic) as void
|
||||||
end if
|
end if
|
||||||
else if isNodeEvent(msg, "state")
|
else if isNodeEvent(msg, "state")
|
||||||
node = msg.getRoSGNode()
|
node = msg.getRoSGNode()
|
||||||
|
if isValid(node?.state)
|
||||||
if m.selectedItemType = "TvChannel" and node.state = "finished"
|
if m.selectedItemType = "TvChannel" and node.state = "finished"
|
||||||
video = CreateVideoPlayerGroup(node.id)
|
video = CreateVideoPlayerGroup(node.id)
|
||||||
m.global.sceneManager.callFunc("pushScene", video)
|
m.global.sceneManager.callFunc("pushScene", video)
|
||||||
|
@ -553,7 +554,7 @@ sub Main (args as dynamic) as void
|
||||||
if retryVideo <> invalid
|
if retryVideo <> invalid
|
||||||
m.global.sceneManager.callFunc("pushScene", retryVideo)
|
m.global.sceneManager.callFunc("pushScene", retryVideo)
|
||||||
end if
|
end if
|
||||||
else if node.showID = invalid
|
else if isValid(node?.showID)
|
||||||
sceneManager.callFunc("popScene")
|
sceneManager.callFunc("popScene")
|
||||||
else
|
else
|
||||||
if video.errorMsg = ""
|
if video.errorMsg = ""
|
||||||
|
@ -563,6 +564,7 @@ sub Main (args as dynamic) as void
|
||||||
end if
|
end if
|
||||||
end if
|
end if
|
||||||
end if
|
end if
|
||||||
|
end if
|
||||||
else if type(msg) = "roDeviceInfoEvent"
|
else if type(msg) = "roDeviceInfoEvent"
|
||||||
event = msg.GetInfo()
|
event = msg.GetInfo()
|
||||||
group = sceneManager.callFunc("getActiveScene")
|
group = sceneManager.callFunc("getActiveScene")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user