[JW Lua] fontinfo:IsIdenticalTo(fontinfo2) can crash Finale

Jan Angermüller jan at angermueller.com
Mon Aug 28 19:25:09 CEST 2017


Jari,

the following code crashes Finale:

local fontinfo=finale.FCFontInfo()
local fontinfo2=nil
if fontinfo:IsIdenticalTo(fontinfo2) then
     print("Is Identical")
end

Well, this is not code the way it was intended to be, but a crash isn't 
nice either ;-)
It originally occured when I wanted to compare two font infos and for 
some reason didn't receive a valid font info from an element, but a nil.

Best,
Jan

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jwmusic.nu/pipermail/jwlua_jwmusic.nu/attachments/20170828/71e05ca4/attachment.html>


More information about the JWLua mailing list