Not sure if this is a bug, but I am getting a nullpointer exception when trying to get all items of the current…
Not sure if this is a bug, but I am getting a nullpointer exception when trying to get all items of the current desktop.
Neither of these work with v14a8
getEvent().getContainer().getAllItems()
getEvent().getScreen().getCurrentDesktop().getAllItems()
In V12 I used LL.getCurrentDesktop().getItems() which doesn’t work now either
]]>« I’ve been using bookmarks for some time, but these don’t work anymore on the most recent alpha versions. (Previous Post)
(Next Post) Jay M »
< ![CDATA[
This works for me with a simple script. I think that either your script is run in the background (I am working on this issue right now) or there’s something wrong with the screen object, in which case he bug may be related with the context of the event. What is the trigger for the script execution?
]]>
< ![CDATA[
I was triggering with a short cut that runs these little scripts. So not in background.
I have reset the desktop to default via lighting setting and now it works without nullpointer. I am retrieving all items as expected.
I assume my initial setup was somehow broken.
]]>
< ![CDATA[
…or something broke during the execution of the app, and it may break again. Please let me know if it happens gain.
]]>
< ![CDATA[
will do. Be warned 😉
]]>