Page MenuHomePhabricator

Fatal exception
Closed, ResolvedPublic

Description

Jun  3 22:15:40 spearow helpmebot[20473]: [ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object
Jun  3 22:15:40 spearow helpmebot[20473]:   at Helpmebot.Services.AccessControl.AccessControlAuthorisationService+<>c.<GetFlagsForUser>b__4_2 (System.String s, Helpmebot.Model.FlagGroup g) [0x00000] in <9562fc030a
Jun  3 22:15:40 spearow helpmebot[20473]:   at System.Linq.Enumerable.Aggregate[TSource,TAccumulate] (System.Collections.Generic.IEnumerable`1[T] source, TAccumulate seed, System.Func`3[T1,T2,TResult] func) [0x000
Jun  3 22:15:40 spearow helpmebot[20473]:   at Helpmebot.Services.AccessControl.AccessControlAuthorisationService.GetFlagsForUser (Stwalkerster.IrcClient.Model.Interfaces.IUser user, System.String locality) [0x000
Jun  3 22:15:40 spearow helpmebot[20473]:   at Helpmebot.Services.AccessControl.AccessControlAuthorisationService.UserHasFlag (Stwalkerster.IrcClient.Model.Interfaces.IUser user, System.String flag, System.String 
Jun  3 22:15:40 spearow helpmebot[20473]:   at Stwalkerster.Bot.CommandLib.Commands.CommandUtilities.CommandBase.AllowedMainCommand () [0x00077] in <3b6c80f1e9de43cebbf5fe0ad4edeb60>:0
Jun  3 22:15:40 spearow helpmebot[20473]:   at Stwalkerster.Bot.CommandLib.Commands.CommandUtilities.CommandBase.Run () [0x00014] in <3b6c80f1e9de43cebbf5fe0ad4edeb60>:0
Jun  3 22:15:40 spearow helpmebot[20473]:   at Stwalkerster.Bot.CommandLib.Services.CommandHandler.ProcessMessageAsync (System.Object state) [0x00049] in <3b6c80f1e9de43cebbf5fe0ad4edeb60>:0
Jun  3 22:15:40 spearow helpmebot[20473]:   at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context (System.Object state) [0x00007] in <6649516e5b3542319fb262b421af0adb>:0
Jun  3 22:15:40 spearow helpmebot[20473]:   at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, Sys
Jun  3 22:15:40 spearow helpmebot[20473]:   at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Bool
Jun  3 22:15:40 spearow helpmebot[20473]:   at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem () [0x00021] in <6649516e5b3542319fb262b421af0adb>:0
Jun  3 22:15:40 spearow helpmebot[20473]:   at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00074] in <6649516e5b3542319fb262b421af0adb>:0
Jun  3 22:15:40 spearow helpmebot[20473]:   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () [0x00000] in <6649516e5b3542319fb262b421af0adb>:0

Event Timeline

stwalkerster triaged this task as Unbreak Now! priority.Jun 3 2019, 10:28 PM
stwalkerster created this task.

Somehow, a null flag group is getting passed through as one of the applicable flag groups. The data in the database would indicate this is not possible, so I'm not entirely sure what's going on here.

stwalkerster claimed this task.

Issue lies within the SelectMany LINQ call. I've removed it for now, but it might be worth an attempt at reproduction for a possible upstream bug report?