Hey, this also just happened to me for the first time.
I saw in another thread (or maybe this one, I forget) that it would be useful if it was found _not_ in a DLC mission, well mine was in the default Georgian Oil War, Mission ATO A.05.4 to be precise.
I was not using BuzzLine's fix.
Line 779 in dcs.log file.
2023-01-22 18:26:15.907 ALERT LUACOMMON (Main): Error: GUI Error: [string "./MissionEditor/modules/me_logbook.lua"]:1128: attempt to index local 'unitTarget' (a nil value)
GUI debug.traceback: stack traceback:
[C]: ?
[string "./MissionEditor/modules/me_logbook.lua"]:1128: in function 'updateUserStatistics'
[string "./MissionEditor/modules/me_debriefing.lua"]:361: in function 'updateStatistic'
[string "./MissionEditor/modules/me_debriefing.lua"]:385: in function 'endMission'
[string "./MissionEditor/modules/me_debriefing.lua"]:351: in function 'onChange'
[string "./dxgui/bind/Button.lua"]:22: in function 'callback'
[string "./dxgui/bind/Widget.lua"]:368: in function <[string "./dxgui/bind/Widget.lua"]:363>
From what I remember (no idea if this will be helpful), the only slightly unusual things about the mission was that I hit a Helo FOB with two TV guided missiles, and accidentally locked a train carrage when trying to hit a tank.
Losing an entire missons progress sucks...
errorMisson.log
dcs.log