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

]]>

4 Commentsto Not sure if this is a bug, but I am getting a nullpointer exception when trying to get all items of the current…

  1. Anonymous says:

    < ![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?

    ]]>

  2. Anonymous says:

    < ![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.

    ]]>

  3. Anonymous says:

    < ![CDATA[

    …or something broke during the execution of the app, and it may break again. Please let me know if it happens gain.

    ]]>

  4. Anonymous says:

    < ![CDATA[

    will do. Be warned 😉

    ]]>

Leave a Reply

Your email address will not be published. Required fields are marked *