Very wired result in script

Very wired result in script

Pierre Hébert  Too many questions today~ I wish its last one.

Line 192: alert( folder.getContainer() );

Line 193: alert( folder.getContainer().getWidth() );

When running,

Alert poppop showed “Container 135” msg.

And then,

“At line 193: Wrapped java.lang.NullPointException (script_name#193)”

Above error happened. Very wierd.

Is there something you can guess the reason? That folder has width/height 0(default) size.

]]>

One Commentto Very wired result in script

  1. Anonymous says:

    < ![CDATA[

    At least 193 lines… This is a long script!


    I believe the folder size is not known yet: it needs to be displayed first so that its dimension can be computed. That is an issue for which I don’t have a solution although I am aware of it (and it should be mentioned in the doc…)



    Don’t worry about the number of questions, I knew scripting would trigger a lot of new ones 😉

    ]]>

Leave a Reply

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