Yes, that is indeed the line that errors out .. either unit_id is bad or name is bad.
Code:
function nUI_Unit:updateLabelInfo( unit_id, unit_info )
-- nUI_ProfileStart( ProfileCounter, "updateLabelInfo" );
modified = false;
if unit_info then
-- check to see if the label has changed
name, realm = UnitName( unit_id );
if unit_info.status_info and unit_info.status_info.is_dnd then
name = ("%s |cFF00FFFF(%s)|r"):format( name, nUI_L["DND"] ); end
if unit_info.name ~= name
or unit_info.realm ~= realm
then
modified = true;
unit_info.last_change = GetTime();
unit_info.name = name;
unit_info.realm = realm;
end
end
-- nUI_ProfileStop();
return modified and unit_info or nil;
end