85 instantiations of NullReferenceException
dotnet-svcutil-lib (2)
ErrorPageMiddlewareWebSite (1)
InMemory.FunctionalTests (1)
Metrics (3)
Metrics.Legacy (3)
Microsoft.Build.Tasks.Core (1)
Microsoft.CodeAnalysis (2)
Microsoft.CodeAnalysis.Analyzers (3)
Microsoft.CodeAnalysis.AnalyzerUtilities (3)
Microsoft.CodeAnalysis.BannedApiAnalyzers (3)
Microsoft.CodeAnalysis.CodeStyle (2)
Microsoft.CodeAnalysis.Collections.Package (2)
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (2)
Microsoft.CodeAnalysis.EditorFeatures (6)
Microsoft.CodeAnalysis.InteractiveHost (2)
Microsoft.CodeAnalysis.PublicApiAnalyzers (3)
Microsoft.CodeAnalysis.ResxSourceGenerator (3)
Microsoft.CodeAnalysis.Threading.Package (2)
Microsoft.CodeAnalysis.Workspaces (2)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
Microsoft.Extensions.AI.Abstractions.Tests (1)
Microsoft.Extensions.DependencyInjection.Abstractions (1)
Microsoft.Maui (1)
Microsoft.VisualBasic.Core (5)
PresentationCore (3)
PresentationFramework (3)
PresentationUI (1)
ReachFramework (2)
Roslyn.Diagnostics.Analyzers (3)
System.Linq.Expressions (1)
System.Private.CoreLib (6)
System.Reflection.MetadataLoadContext (1)
System.Security.Cryptography.Pkcs (1)
System.Windows.Forms.Tests (2)
Test.Utilities (3)
Text.Analyzers (3)
463 references to NullReferenceException
Analyzer.Utilities.UnitTests (5)
dotnet-svcutil-lib (7)
Microsoft.AspNetCore.Http.Abstractions.Tests (2)
Microsoft.AspNetCore.Http.Extensions.Tests (1)
Microsoft.AspNetCore.Mvc.Core.Test (4)
Microsoft.AspNetCore.Mvc.IntegrationTests (6)
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
Microsoft.AspNetCore.Shared.Tests (2)
Microsoft.Build.Engine.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Features (2)
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (2)
Microsoft.CodeAnalysis.Features (1)
Microsoft.CodeAnalysis.Scripting (1)
Microsoft.CodeAnalysis.UnitTests (29)
Microsoft.Maui.Controls (1)
Microsoft.VisualBasic.Tests (1)
Microsoft.VisualStudio.LanguageServices (1)
mscorlib (1)
netstandard (1)
PresentationBuildTasks (9)
PresentationCore (1)
PresentationFramework (1)
System.ComponentModel.Composition (3)
System.Data.Common (2)
System.Data.Odbc (1)
System.Drawing.Common.Tests (48)
System\Drawing\Imaging\EncoderParameterTests.cs (24)
216[InlineData(null, new int[] { 1 }, new int[] { 1 }, new int[] { 1 }, typeof(NullReferenceException))]
217[InlineData(new int[] { 1 }, null, new int[] { 1 }, new int[] { 1 }, typeof(NullReferenceException))]
218[InlineData(new int[] { 1 }, new int[] { 1 }, null, new int[] { 1 }, typeof(NullReferenceException))]
219[InlineData(new int[] { 1 }, new int[] { 1 }, new int[] { 1 }, null, typeof(NullReferenceException))]
229Assert.Throws<NullReferenceException>(() => ep.Encoder = null);
235[InlineData(new int[] { 0, 1 }, null, typeof(NullReferenceException))]
236[InlineData(null, new int[] { 0, 1 }, typeof(NullReferenceException))]
245[InlineData(new long[] { 0, 1 }, null, typeof(NullReferenceException))]
246[InlineData(null, new long[] { 0, 1 }, typeof(NullReferenceException))]
255Assert.Throws<NullReferenceException>(() => new EncoderParameter(s_anyEncoder, (string)null));
261Assert.Throws<NullReferenceException>(() => new EncoderParameter(s_anyEncoder, (byte[])null));
287Assert.Throws<NullReferenceException>(() => new EncoderParameter(null, 0));
288Assert.Throws<NullReferenceException>(() => new EncoderParameter(null, 0, false));
289Assert.Throws<NullReferenceException>(() => new EncoderParameter(null, (short)0));
290Assert.Throws<NullReferenceException>(() => new EncoderParameter(null, numerator: 0, denominator: 0));
291Assert.Throws<NullReferenceException>(() => new EncoderParameter(null, rangebegin: 0, rangeend: 0));
292Assert.Throws<NullReferenceException>(() => new EncoderParameter(null, 0, 0, 0, 0));
293Assert.Throws<NullReferenceException>(() => new EncoderParameter(null, "anyString"));
294Assert.Throws<NullReferenceException>(() => new EncoderParameter(null, Array.Empty<byte>()));
295Assert.Throws<NullReferenceException>(() => new EncoderParameter(null, [], false));
296Assert.Throws<NullReferenceException>(() => new EncoderParameter(null, Array.Empty<short>()));
297Assert.Throws<NullReferenceException>(() => new EncoderParameter(null, Array.Empty<long>()));
298Assert.Throws<NullReferenceException>(() => new EncoderParameter(null, Array.Empty<int>(), []));
299Assert.Throws<NullReferenceException>(() => new EncoderParameter(null, Array.Empty<long>(), []));
System.Private.CoreLib (114)
System.Private.Windows.Core (1)
System.Private.Xml (1)
System.Runtime (1)
System.Runtime.Serialization.Formatters (1)
System.Windows.Forms (5)
System.Windows.Forms.Design.Tests (4)
System.Windows.Forms.Primitives (1)
System.Windows.Forms.Tests (84)
System.Xaml (1)
System.Xaml.Tests (73)
UIAutomationClient (2)
UIAutomationClientSideProviders (5)
WindowsBase.Tests (31)
System\Windows\WeakEventManagerTTests.cs (3)
189Assert.Throws<NullReferenceException>(() => WeakEventManager<object, EventArgs>.AddHandler(new object(), null, (sender, e) => { }));
192Assert.Throws<NullReferenceException>(() => WeakEventManager<object, EventArgs>.AddHandler(new object(), null, (sender, e) => { }));
351Assert.Throws<NullReferenceException>(() => WeakEventManager<object, EventArgs>.RemoveHandler(new object(), null, (sender, e) => { }));