RedXi / vatsimbrief-helper

X-Plane Lua Plugin supporting VR pilots with their Simbrief flight plan and live frequency information from VATSIM
MIT License
6 stars 0 forks source link

Exception during (first) launch when no simbrief user name is set #9

Closed RedXi closed 1 year ago

RedXi commented 2 years ago

The configuration window still opens up as expected but the log contained the following message:

Not fetching flight plan. No simbrief username configured.
...ources/plugins/FlyWithLua/Scripts/vatsimbrief-helper.lua:1335: attempt to call global 'createVatsimbriefHelperControlWindow' (a nil value) (coroutine: thread: 0x36c70bc0, socket: nil)
stack traceback:
    ...ources/plugins/FlyWithLua/Scripts/vatsimbrief-helper.lua: in function <...ources/plugins/FlyWithLua/Scripts/vatsimbrief-helper.lua:1325>

Hotfix, line 1335:

if createVatsimbriefHelperControlWindow ~= nil then
    createVatsimbriefHelperControlWindow()
end