Closed nminaya closed 3 years ago
This issue could be related to this chatConfig
variable beeing null
https://github.com/nminaya/grammar-nazi-bot/blob/6d440e9c47480caea6dbd921d02e2040a06a3d14/GrammarNazi.Core/Services/TelegramCommandHandlerService.cs#L98
Not sure how that could happen. If this happen again, we will need to handle this null scenario, while trying to figure out how could return null at that point.
This is an issue created automatically by GrammarNazi when an exception was captured.
Date (UTC): 01/11/2021 16:16:11
Exception:
System.NullReferenceException: Object reference not set to an instance of an object. at GrammarNazi.Core.Services.TelegramCommandHandlerService.HandleCommand(Message message) in /src/GrammarNazi.Core/Services/TelegramCommandHandlerService.cs:line 100 at GrammarNazi.App.HostedServices.TelegramBotHostedService.OnMessageReceived(Object sender, MessageEventArgs messageEvent) in /src/GrammarNazi.App/HostedServices/TelegramBotHostedService.cs:line 92 at GrammarNazi.App.HostedServices.TelegramBotHostedService.b__8_0(Object obj, MessageEventArgs eventArgs) in /src/GrammarNazi.App/HostedServices/TelegramBotHostedService.cs:line 72