hhu-mahmoud / ExceptionalReSharper

Extension for ReSharper which analyzes thrown and documented C# exceptions and suggests improvements
Microsoft Public License
5 stars 2 forks source link

NullReferenceException throws multiple times #10

Open jirisykora83 opened 2 years ago

jirisykora83 commented 2 years ago

In log I notice this exception. Not sure if it is expected but occurs multiple times

--- EXCEPTION #1/2 [NullReferenceException]
Message = “Object reference not set to an instance of an object.”
ExceptionPath = Root.InnerException
ClassName = System.NullReferenceException
HResult = E_POINTER=COR_E_NULLREFERENCE=80004003
Source = ReSharper.Exceptional
StackTraceString = “
  at ReSharper.Exceptional.Analyzers.IsThrownExceptionDocumentedAnalyzer.<>c__DisplayClass2_0.<IsThrownExceptionSubclassOfOptionalException>b__0(OptionalExceptionConfiguration e) in D:\Developments\.Net\Extensions\ExceptionalReSharper\src\Exceptional\Analyzers\IsThrownExceptionDocumentedAnalyzer.cs:line 78
     at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate)
     at ReSharper.Exceptional.Analyzers.IsThrownExceptionDocumentedAnalyzer.IsThrownExceptionSubclassOfOptionalException(ThrownExceptionModel thrownExceptionModel) in D:\Developments\.Net\Extensions\ExceptionalReSharper\src\Exceptional\Analyzers\IsThrownExceptionDocumentedAnalyzer.cs:line 77
     at ReSharper.Exceptional.Analyzers.IsThrownExceptionDocumentedAnalyzer.Visit(ThrownExceptionModel thrownException) in D:\Developments\.Net\Extensions\ExceptionalReSharper\src\Exceptional\Analyzers\IsThrownExceptionDocumentedAnalyzer.cs:line 32
     at ReSharper.Exceptional.Models.ThrownExceptionModel.Accept(AnalyzerBase analyzer) in D:\Developments\.Net\Extensions\ExceptionalReSharper\src\Exceptional\Models\ThrownExceptionModel.cs:line 54
     at ReSharper.Exceptional.Models.ExceptionsOrigins.ThrowStatementModel.Accept(AnalyzerBase analyzer) in D:\Developments\.Net\Extensions\ExceptionalReSharper\src\Exceptional\Models\ExceptionsOrigins\ThrowStatementModel.cs:line 53
     at ReSharper.Exceptional.Models.BlockModelBase`1.Accept(AnalyzerBase analyzer) in D:\Developments\.Net\Extensions\ExceptionalReSharper\src\Exceptional\Models\BlockModelBase.cs:line 90
     at ReSharper.Exceptional.Models.AnalyzeUnitModelBase`1.Accept(AnalyzerBase analyzer) in D:\Developments\.Net\Extensions\ExceptionalReSharper\src\Exceptional\Models\AnalyzeUnitModelBase.cs:line 27
     at ReSharper.Exceptional.Contexts.ProcessContext`1.RunAnalyzers() in D:\Developments\.Net\Extensions\ExceptionalReSharper\src\Exceptional\Contexts\ProcessContext.cs:line 188
     at ReSharper.Exceptional.ExceptionalRecursiveElementProcessor.ProcessAfterInterior(ITreeNode element) in D:\Developments\.Net\Extensions\ExceptionalReSharper\src\Exceptional\ExceptionalRecursiveElementProcessor.cs:line 47
     at JetBrains.ReSharper.Psi.RecursiveElementProcessorExtensions.ProcessDescendants(ITreeNode root, IRecursiveElementProcessor processor)
     at ReSharper.Exceptional.ExceptionalDaemonStageProcess.Execute(Action`1 commiter) in D:\Developments\.Net\Extensions\ExceptionalReSharper\src\Exceptional\ExceptionalDaemonStageProcess.cs:line 54
     at JetBrains.ReSharper.Feature.Services.Daemon.DaemonProcessBase.RunStage(IDaemonStage stage, DaemonProcessKind processKind, Action`2 commiter, IContextBoundSettingsStore contextBoundSettingsStore, JetHashSet`1 disabledStages)
”
hhu-mahmoud commented 2 years ago

@jirisykora83 do you still have this problem?