[JW Lua] Finale crash when argument is nil

Jari Williamsson jari.williamsson at mailbox.swipnet.se
Tue Sep 22 12:34:33 CEST 2015


Thomas,

Thanks for the bug report! I've now fixed the crash on nil pointers in 
both LoadForEntry() and LoadForCell().


Best regards,

Jari Williamsson


On 2015-09-08 06:25, Thomas Weber wrote:
> I found Finale is simply crashing with this script:
>
>
> local function getStaffSpec(noteEntry)
>      local staffSpec = finale.FCCurrentStaffSpec()
>      staffSpec:LoadForEntry(noteEntry)
>      return staffSpec
> end
>
> for entry in eachentry(finenv.Region()) do
>      getStaffSpec(enty) -- misspelled
> end
>
>
> One can of course add a check in the script to make it fail gracefully, but I think ideally, such a check should be built into JW Lua itself.
>
> Have a great day!
> Thomas
>
> _______________________________________________
> JWLua mailing list
> JWLua at jwmusic.nu
> http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu
>
>






More information about the JWLua mailing list