Running a script with LL.runScript from another script results in LL.getCurrentDesktop() to be null
Running a script with LL.runScript from another script results in LL.getCurrentDesktop() to be null
– Android Version : 6.0.1
– Device : Sony Xperia Z3 compact
– Steps to reproduce the issue :
create a scriptA containing: LL.getCurrentDesktop().setPosition(100,100,1,TRUE)
Create script B containing:
LL.runScript(“scriptA”,null)
assign scriptB to home-key.
Pressing the home key does not animate the desktop. No action. Instead error of null object reference. (unexpectedly)
Setting scriptA to home-key does animate the desktop as LL.getCurrentDesktop() is not null (as expected)
]]>
< ![CDATA[
Good catch!
]]>