96 instantiations of NullReferenceException
dotnet-svcutil-lib (2)
FrameworkFork\Microsoft.Xml\Xml\Core\XmlReader.cs (2)
1207throw new NullReferenceException(); 1217throw new NullReferenceException();
GenerateDocumentationAndConfigFiles (2)
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (2)
1041throw new NullReferenceException(); 1046throw new NullReferenceException();
Microsoft.Build (2)
src\9f0d3f3da306d8cf\ImmutableArrayExtensions.cs (2)
1273throw new NullReferenceException(); 1278throw new NullReferenceException();
Microsoft.Build.Tasks.Core (1)
SystemState.cs (1)
268throw new NullReferenceException(nameof(instanceLocalFileStateCache));
Microsoft.CodeAnalysis (3)
CommandLine\CommandLineResource.cs (1)
68var fullPath = FullPath ?? throw new NullReferenceException();
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (2)
1041throw new NullReferenceException(); 1046throw new NullReferenceException();
Microsoft.CodeAnalysis.Analyzers (2)
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (2)
1041throw new NullReferenceException(); 1046throw new NullReferenceException();
Microsoft.CodeAnalysis.AnalyzerUtilities (2)
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (2)
1041throw new NullReferenceException(); 1046throw new NullReferenceException();
Microsoft.CodeAnalysis.CodeStyle (2)
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (2)
1041throw new NullReferenceException(); 1046throw new NullReferenceException();
Microsoft.CodeAnalysis.Extensions.Package (2)
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (2)
1041throw new NullReferenceException(); 1046throw new NullReferenceException();
Microsoft.CodeAnalysis.NetAnalyzers (3)
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Compiler\Lightup\LightupHelpers.cs (3)
52throw new NullReferenceException(); 106throw new NullReferenceException(); 152throw new NullReferenceException();
Microsoft.CodeAnalysis.ResxSourceGenerator (2)
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (2)
1041throw new NullReferenceException(); 1046throw new NullReferenceException();
Microsoft.CodeAnalysis.Workspaces (2)
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (2)
1041throw new NullReferenceException(); 1046throw new NullReferenceException();
Microsoft.Diagnostics.DataContractReader.Legacy (37)
ClrDataExceptionState.cs (1)
342throw new NullReferenceException();
ClrDataMethodDefinition.cs (2)
663throw new NullReferenceException("The output buffer is null."); 735throw new NullReferenceException();
ClrDataMethodInstance.cs (1)
727throw new NullReferenceException("The output buffer is null.");
ClrDataModule.cs (1)
398throw new NullReferenceException();
ClrDataTask.cs (1)
195throw new NullReferenceException("The output buffer is null.");
ClrDataTypeDefinition.cs (1)
234throw new NullReferenceException();
ClrDataValue.cs (1)
323throw new NullReferenceException("The output buffer is null.");
Dbi\DacDbiImpl.cs (7)
4828throw new NullReferenceException("One or more parameters are null"); 4894throw new NullReferenceException(); 5239throw new NullReferenceException(nameof(pHandle)); 5303throw new NullReferenceException(nameof(pFetched)); 5456throw new NullReferenceException(nameof(pceltFetched)); 5608throw new NullReferenceException(nameof(pLayout)); 5666throw new NullReferenceException(nameof(pLayout));
Marshalling\DacComNullableByRef.cs (1)
41throw new NullReferenceException();
SOSDacImpl.cs (17)
1703throw new NullReferenceException(); 1817throw new NullReferenceException(); 3927throw new NullReferenceException(); 4101throw new NullReferenceException(); 4390throw new NullReferenceException(); 4885throw new NullReferenceException(); 4889throw new NullReferenceException(); 5065throw new NullReferenceException(); 5136throw new NullReferenceException(); // HResults.E_POINTER; 6895throw new NullReferenceException(); 6935throw new NullReferenceException(); 6993throw new NullReferenceException(); 7120throw new NullReferenceException(); 7122throw new NullReferenceException(); 7193throw new NullReferenceException(); 7312throw new NullReferenceException(); 7378throw new NullReferenceException();
SOSDacImpl.IXCLRDataProcess.cs (4)
481throw new NullReferenceException(); 670throw new NullReferenceException(); 757throw new NullReferenceException(); 1701throw new NullReferenceException();
Microsoft.Extensions.AI.Abstractions.Tests (1)
Contents\FunctionCallContentTests.cs (1)
163var ex = new InvalidOperationException("hello", new NullReferenceException("bye"));
Microsoft.Extensions.DependencyInjection.Abstractions (1)
ActivatorUtilities.cs (1)
1159throw new NullReferenceException();
Microsoft.Maui (1)
SemanticExtensions.cs (1)
27 throw new NullReferenceException("Can't access view from a null handler");
Microsoft.VisualBasic.Core (5)
Microsoft\VisualBasic\CompilerServices\ExceptionUtils.vb (1)
280Return New NullReferenceException(Description)
Microsoft\VisualBasic\CompilerServices\VB6BinaryFile.vb (1)
196Dim JustNeedTheMessage As New NullReferenceException ' We don't have access to the localized resources for this string.
Microsoft\VisualBasic\CompilerServices\VB6File.vb (3)
1359Throw New NullReferenceException 1664Throw New NullReferenceException 2713Dim JustNeedTheMessage As New NullReferenceException ' We don't have access to the localized resources for this string.
Mono.Cecil.Mdb (1)
Mono.CompilerServices.SymbolWriter\MonoSymbolWriter.cs (1)
156 throw new NullReferenceException ();
PresentationCore (3)
System\Windows\Media\ColorContext.cs (1)
215throw new NullReferenceException();
System\Windows\Media\ImageSourceConverter.cs (1)
146throw new NullReferenceException();
System\Windows\Media\VisualTreeHelper.cs (1)
106throw new NullReferenceException("dpiInfo cannot be null");
PresentationFramework (3)
MS\Internal\IO\Packaging\XpsFilter.cs (1)
111throw new NullReferenceException(SR.FilterNullGetTextBufferPointer);
System\Windows\Controls\Primitives\Popup.cs (2)
1862Exception nre = new NullReferenceException(); 1863throw new NullReferenceException(nre.Message, SavedException);
PresentationUI (1)
MS\Internal\Documents\RightsManagementProvider.cs (1)
749throw new NullReferenceException("template");
ReachFramework (2)
Packaging\XpsDocument.cs (2)
473throw new NullReferenceException("signature.PackageSignature"); 477throw new NullReferenceException("signature.PackageSignature.SignaturePart");
Roslyn.Diagnostics.Analyzers (2)
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (2)
1041throw new NullReferenceException(); 1046throw new NullReferenceException();
System.Data.OleDb (1)
OleDbConnectionInternal.cs (1)
423throw new NullReferenceException();
System.DirectoryServices.Protocols (1)
System\DirectoryServices\Protocols\ldap\LdapConnection.Linux.cs (1)
20throw new NullReferenceException();
System.Linq.Expressions (1)
System\Linq\Expressions\Interpreter\TypeOperations.cs (1)
349throw new NullReferenceException();
System.Private.CoreLib (9)
src\runtime\src\libraries\System.Private.CoreLib\src\Internal\Runtime\CompilerHelpers\ThrowHelpers.cs (1)
18throw new NullReferenceException();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.cs (1)
827return new System.NullReferenceException();
src\runtime\src\libraries\System.Private.CoreLib\src\System\ThrowHelper.cs (1)
404throw new NullReferenceException(SR.Arg_NullArgumentNullRef);
System\Delegate.cs (2)
144throw new NullReferenceException(); 173throw new NullReferenceException();
System\Reflection\DynamicInvokeInfo.cs (1)
846Exception exception = new NullReferenceException(SR.NullReference_InvokeNullRefReturned);
System\Reflection\Runtime\General\Assignability.cs (1)
23throw new NullReferenceException();
System\RuntimeExceptionHelpers.cs (1)
96return new NullReferenceException();
System\TypedReference.cs (1)
42throw new NullReferenceException(); // For compatibility;
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\General\Assignability.cs (1)
14throw new NullReferenceException();
System.Security.Cryptography.Pkcs (1)
System\Security\Cryptography\Pkcs\CmsRecipientCollection.cs (1)
28throw new NullReferenceException(); //Desktop compat: this is the wrong exception to throw but it is the compatible one.
174 references to NullReferenceException
Aspire.Hosting.Azure.Kubernetes (1)
AzureKubernetesLoadBalancerResource.cs (1)
58/// <see cref="NullReferenceException"/> at deploy with no compile-time signal. Compare
dotnet-svcutil-lib (7)
FrameworkFork\Microsoft.Xml\Xml\XmlException.cs (1)
270e is NullReferenceException
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecurityPolicy.cs (4)
1943if (e is NullReferenceException) 2361if (e is NullReferenceException) 2888if (e is NullReferenceException) 2907if (e is NullReferenceException)
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecurityPolicy11.cs (1)
93if (e is NullReferenceException)
Shared\Utilities\Utilities.cs (1)
14return ex != null && (ex is NullReferenceException || ex is ArgumentNullException);
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (1)
Latency\Internal\HttpLatencyLogEnricherTests.cs (1)
22Assert.Throws<NullReferenceException>(() => enricher.Enrich(mockEnrichmentPropertyBag.Object, httpContext!));
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
ExpressionMetadataProvider.cs (1)
89catch (NullReferenceException)
Microsoft.CodeAnalysis.CSharp.Features (2)
DocumentationComments\CSharpDocumentationCommentSnippetService.cs (2)
174var exception = hasUsingSystem ? nameof(NullReferenceException) : $"{nameof(System)}.{nameof(NullReferenceException)}";
Microsoft.CodeAnalysis.Features (1)
DocumentHighlighting\AbstractDocumentHighlightsService.cs (1)
333catch (NullReferenceException e) when (FatalError.ReportAndCatch(e))
Microsoft.CodeAnalysis.Scripting (1)
Hosting\AssemblyLoader\MetadataShadowCopyProvider.cs (1)
380/// <exception cref="NullReferenceException"><paramref name="fullPath"/> is null.</exception>
Microsoft.Diagnostics.DataContractReader.Legacy (2)
Marshalling\DacComNullableByRef.cs (2)
17/// throws <see cref="NullReferenceException"/> — mirroring what happens 33/// Throws <see cref="NullReferenceException"/> when <see cref="IsNullRef"/> is <c>true</c>.
Microsoft.Extensions.AI.Abstractions (2)
Functions\AIFunctionFactory.cs (1)
1232catch (Exception e) when (e is ArgumentNullException or NullReferenceException or IndexOutOfRangeException)
Utilities\AIJsonUtilities.Schema.Create.cs (1)
968catch (NullReferenceException)
Microsoft.Maui.Controls (1)
TypedBinding.cs (1)
316 catch (Exception ex) when (ex is NullReferenceException || ex is KeyNotFoundException || ex is IndexOutOfRangeException || ex is ArgumentOutOfRangeException)
Microsoft.NET.Sdk.Publish.Tasks (1)
Tasks\MsDeploy\NormalizeServiceUrl.cs (1)
126catch (NullReferenceException)
Microsoft.Private.Windows.Core (5)
src\winforms\src\Microsoft.Private.Windows.Polyfills\System\Threading\InterlockedExtensions.cs (4)
17/// <exception cref="NullReferenceException">The address of location is a null pointer.</exception> 24/// <exception cref="NullReferenceException">The address of location is a null pointer.</exception> 33/// <exception cref="NullReferenceException">The address of location1 is a null pointer.</exception> 42/// <exception cref="NullReferenceException">The address of <paramref name="location1"/> is a null pointer.</exception>
System\ExceptionExtensions.cs (1)
19=> ex is NullReferenceException
Mono.Cecil (5)
Mono.Collections.Generic\Collection.cs (5)
78 } catch (NullReferenceException) { 275 } catch (NullReferenceException) { 296 } catch (NullReferenceException) { 310 } catch (NullReferenceException) { 321 } catch (NullReferenceException) {
mscorlib (1)
src\runtime\src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
377[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.NullReferenceException))]
netstandard (1)
netstandard.cs (1)
1330[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.NullReferenceException))]
PresentationBuildTasks (9)
Microsoft\Build\Tasks\Windows\FileClassifier.cs (1)
100if (e is NullReferenceException || e is SEHException)
Microsoft\Build\Tasks\Windows\MergeLocalizationDirectives.cs (1)
88if (e is NullReferenceException || e is SEHException)
Microsoft\Build\Tasks\Windows\ResourcesGenerator.cs (1)
196if (e is NullReferenceException || e is SEHException)
Microsoft\Build\Tasks\Windows\UidManager.cs (4)
95if (e is NullReferenceException || e is SEHException) 393if (e is NullReferenceException || e is SEHException) 990if (e is NullReferenceException || e is SEHException) 1029if (e is NullReferenceException || e is SEHException)
Microsoft\Build\Tasks\Windows\UpdateManifestForBrowserApplication.cs (1)
127if (e is NullReferenceException || e is SEHException)
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\CriticalExceptions.cs (1)
23return ex is NullReferenceException ||
PresentationCore (1)
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (1)
145catch (NullReferenceException ex)
PresentationFramework (1)
System\Windows\Shell\JumpList.cs (1)
774if (e is NullReferenceException || e is System.Runtime.InteropServices.SEHException)
System.ComponentModel.Composition (3)
System\ComponentModel\Composition\MetadataViewGenerator.cs (2)
283proxyCtorIL.BeginCatchBlock(typeof(NullReferenceException)); 338proxyCtorIL.BeginCatchBlock(typeof(NullReferenceException));
System\ComponentModel\Composition\MetadataViewProvider.cs (1)
111else if (ex.InnerException.GetType() == typeof(NullReferenceException))
System.Data.Common (2)
src\runtime\src\libraries\Common\src\System\Data\Common\AdapterUtil.cs (1)
233private static readonly Type s_nullReferenceType = typeof(NullReferenceException);
System\Data\DataSetUtil.cs (1)
94(e.GetType() != typeof(NullReferenceException)) &&
System.Data.Odbc (1)
src\runtime\src\libraries\Common\src\System\Data\Common\AdapterUtil.cs (1)
233private static readonly Type s_nullReferenceType = typeof(NullReferenceException);
System.Data.OleDb (1)
System\Data\Common\AdapterUtil.cs (1)
216private static readonly Type NullReferenceType = typeof(NullReferenceException);
System.Drawing.Common (1)
System\Drawing\ClientUtils.cs (1)
15return ex is NullReferenceException
System.Private.CoreLib (105)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Lazy.cs (1)
439/// <exception cref="NullReferenceException">
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Vector_1.cs (4)
49/// <exception cref="NullReferenceException"><paramref name="values" /> is <c>null</c>.</exception> 68/// <exception cref="NullReferenceException"><paramref name="values" /> is <c>null</c>.</exception> 613/// <exception cref="NullReferenceException"><paramref name="destination" /> is <c>null</c>.</exception> 631/// <exception cref="NullReferenceException"><paramref name="destination" /> is <c>null</c>.</exception>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Vector2.cs (2)
1014/// <exception cref="NullReferenceException"><paramref name="array" /> is <see langword="null" />.</exception> 1033/// <exception cref="NullReferenceException"><paramref name="array" /> is <see langword="null" />.</exception>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Vector3.cs (2)
1024/// <exception cref="NullReferenceException"><paramref name="array" /> is <see langword="null" />.</exception> 1043/// <exception cref="NullReferenceException"><paramref name="array" /> is <see langword="null" />.</exception>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Vector4.cs (2)
1096/// <exception cref="NullReferenceException"><paramref name="array" /> is <see langword="null" />.</exception> 1113/// <exception cref="NullReferenceException"><paramref name="array" /> is <see langword="null" />.</exception>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\TaskAwaiter.cs (15)
38/// <exception cref="NullReferenceException">The awaiter was not properly initialized.</exception> 62/// <exception cref="NullReferenceException">The awaiter was not properly initialized.</exception> 172/// <exception cref="NullReferenceException">The awaiter was not properly initialized.</exception> 332/// <exception cref="NullReferenceException">The awaiter was not properly initialized.</exception> 338/// <exception cref="NullReferenceException">The awaiter was not properly initialized.</exception> 348/// <exception cref="NullReferenceException">The awaiter was not properly initialized.</exception> 357/// <exception cref="NullReferenceException">The awaiter was not properly initialized.</exception> 430/// <exception cref="NullReferenceException">The awaiter was not properly initialized.</exception> 436/// <exception cref="NullReferenceException">The awaiter was not properly initialized.</exception> 446/// <exception cref="NullReferenceException">The awaiter was not properly initialized.</exception> 454/// <exception cref="NullReferenceException">The awaiter was not properly initialized.</exception> 512/// <exception cref="NullReferenceException">The awaiter was not properly initialized.</exception> 518/// <exception cref="NullReferenceException">The awaiter was not properly initialized.</exception> 528/// <exception cref="NullReferenceException">The awaiter was not properly initialized.</exception> 537/// <exception cref="NullReferenceException">The awaiter was not properly initialized.</exception>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\CollectionsMarshal.cs (1)
135/// <exception cref="NullReferenceException">
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\GCHandle.T.cs (1)
44/// <exception cref="NullReferenceException">If the handle is not initialized or already disposed.</exception>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\GCHandleExtensions.cs (2)
25/// <exception cref="NullReferenceException">If the handle is not initialized or already disposed.</exception> 49/// <exception cref="NullReferenceException">If the handle is not initialized or already disposed.</exception>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.cs (8)
294catch (NullReferenceException) 318catch (NullReferenceException) 342catch (NullReferenceException) 389catch (NullReferenceException) 405catch (NullReferenceException) 429catch (NullReferenceException) 462catch (NullReferenceException) 509catch (NullReferenceException)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\MemoryMarshal.cs (2)
95/// <exception cref="NullReferenceException"><paramref name="array"/> is <see langword="null"/>.</exception> 109/// <exception cref="NullReferenceException"><paramref name="array"/> is <see langword="null"/>.</exception>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\PinnedGCHandle.T.cs (2)
46/// <exception cref="NullReferenceException">If the handle is not initialized or already disposed.</exception> 82/// <exception cref="NullReferenceException">If the handle is not initialized or already disposed.</exception>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\WeakGCHandle.T.cs (2)
49/// <exception cref="NullReferenceException">If the handle is not initialized or already disposed.</exception> 63/// <exception cref="NullReferenceException">If the handle is not initialized or already disposed.</exception>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\ISimdVector_2.cs (4)
183/// <exception cref="NullReferenceException"><paramref name="destination" /> is <c>null</c>.</exception> 193/// <exception cref="NullReferenceException"><paramref name="destination" /> is <c>null</c>.</exception> 234/// <exception cref="NullReferenceException"><paramref name="values" /> is <c>null</c>.</exception> 243/// <exception cref="NullReferenceException"><paramref name="values" /> is <c>null</c>.</exception>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\SimdVectorExtensions.cs (2)
16/// <exception cref="NullReferenceException"><paramref name="destination" /> is <c>null</c>.</exception> 32/// <exception cref="NullReferenceException"><paramref name="destination" /> is <c>null</c>.</exception>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector128.cs (4)
745/// <exception cref="NullReferenceException"><paramref name="destination" /> is <c>null</c>.</exception> 767/// <exception cref="NullReferenceException"><paramref name="destination" /> is <c>null</c>.</exception> 1020/// <exception cref="NullReferenceException"><paramref name="values" /> is <c>null</c>.</exception> 1041/// <exception cref="NullReferenceException"><paramref name="values" /> is <c>null</c>.</exception>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector256.cs (4)
751/// <exception cref="NullReferenceException"><paramref name="destination" /> is <c>null</c>.</exception> 773/// <exception cref="NullReferenceException"><paramref name="destination" /> is <c>null</c>.</exception> 1020/// <exception cref="NullReferenceException"><paramref name="values" /> is <c>null</c>.</exception> 1041/// <exception cref="NullReferenceException"><paramref name="values" /> is <c>null</c>.</exception>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector512.cs (4)
665/// <exception cref="NullReferenceException"><paramref name="destination" /> is <c>null</c>.</exception> 686/// <exception cref="NullReferenceException"><paramref name="destination" /> is <c>null</c>.</exception> 917/// <exception cref="NullReferenceException"><paramref name="values" /> is <c>null</c>.</exception> 937/// <exception cref="NullReferenceException"><paramref name="values" /> is <c>null</c>.</exception>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Intrinsics\Vector64.cs (4)
702/// <exception cref="NullReferenceException"><paramref name="destination" /> is <c>null</c>.</exception> 724/// <exception cref="NullReferenceException"><paramref name="destination" /> is <c>null</c>.</exception> 994/// <exception cref="NullReferenceException"><paramref name="values" /> is <c>null</c>.</exception> 1015/// <exception cref="NullReferenceException"><paramref name="values" /> is <c>null</c>.</exception>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Interlocked.cs (38)
18/// <exception cref="NullReferenceException">The address of location is a null pointer.</exception> 27/// <exception cref="NullReferenceException">The address of location is a null pointer.</exception> 38/// <exception cref="NullReferenceException">The address of location is a null pointer.</exception> 47/// <exception cref="NullReferenceException">The address of location is a null pointer.</exception> 59/// <exception cref="NullReferenceException">The address of location1 is a null pointer.</exception> 70/// <exception cref="NullReferenceException">The address of location1 is a null pointer.</exception> 80/// <exception cref="NullReferenceException">The address of location1 is a null pointer.</exception> 118/// <exception cref="NullReferenceException">The address of location1 is a null pointer.</exception> 157/// <exception cref="NullReferenceException">The address of location1 is a null pointer.</exception> 168/// <exception cref="NullReferenceException">The address of location1 is a null pointer.</exception> 179/// <exception cref="NullReferenceException">The address of location1 is a null pointer.</exception> 188/// <exception cref="NullReferenceException">The address of location1 is a null pointer.</exception> 197/// <exception cref="NullReferenceException">The address of location1 is a null pointer.</exception> 213/// <exception cref="NullReferenceException">The address of location1 is a null pointer.</exception> 230/// <exception cref="NullReferenceException">The address of location1 is a null pointer.</exception> 293/// <exception cref="NullReferenceException">The address of <paramref name="location1"/> is a null pointer.</exception> 305/// <exception cref="NullReferenceException">The address of <paramref name="location1"/> is a null pointer.</exception> 316/// <exception cref="NullReferenceException">The address of <paramref name="location1"/> is a null pointer.</exception> 358/// <exception cref="NullReferenceException">The address of <paramref name="location1"/> is a null pointer.</exception> 401/// <exception cref="NullReferenceException">The address of <paramref name="location1"/> is a null pointer.</exception> 413/// <exception cref="NullReferenceException">The address of <paramref name="location1"/> is a null pointer.</exception> 425/// <exception cref="NullReferenceException">The address of <paramref name="location1"/> is a null pointer.</exception> 435/// <exception cref="NullReferenceException">The address of <paramref name="location1"/> is a null pointer.</exception> 445/// <exception cref="NullReferenceException">The address of <paramref name="location1"/> is a null pointer.</exception> 462/// <exception cref="NullReferenceException">The address of <paramref name="location1"/> is a null pointer.</exception> 480/// <exception cref="NullReferenceException">The address of <paramref name="location1"/> is a null pointer.</exception> 546/// <exception cref="NullReferenceException">The address of <paramref name="location1"/> is a null pointer.</exception> 556/// <exception cref="NullReferenceException">The address of <paramref name="location1"/> is a null pointer.</exception> 578/// <exception cref="NullReferenceException">The address of <paramref name="location1"/> is a null pointer.</exception> 600/// <exception cref="NullReferenceException">The address of <paramref name="location1"/> is a null pointer.</exception> 610/// <exception cref="NullReferenceException">The address of <paramref name="location1"/> is a null pointer.</exception> 632/// <exception cref="NullReferenceException">The address of <paramref name="location1"/> is a null pointer.</exception> 642/// <exception cref="NullReferenceException">The address of <paramref name="location1"/> is a null pointer.</exception> 721/// <exception cref="NullReferenceException">The address of <paramref name="location1"/> is a null pointer.</exception> 743/// <exception cref="NullReferenceException">The address of <paramref name="location1"/> is a null pointer.</exception> 753/// <exception cref="NullReferenceException">The address of <paramref name="location1"/> is a null pointer.</exception> 775/// <exception cref="NullReferenceException">The address of <paramref name="location1"/> is a null pointer.</exception> 785/// <exception cref="NullReferenceException">The address of <paramref name="location1"/> is a null pointer.</exception>
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\ThreadLocal.cs (1)
213/// <exception cref="NullReferenceException">
System.Private.Windows.Core (1)
System\ExceptionExtensions.cs (1)
19=> ex is NullReferenceException
System.Private.Xml (1)
System\Xml\XmlException.cs (1)
297e is NullReferenceException
System.Runtime (1)
src\runtime\artifacts\obj\System.Runtime\Release\net11.0\System.Runtime.Forwards.cs (1)
375[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.NullReferenceException))]
System.Runtime.Serialization.Formatters (1)
System\Runtime\Serialization\ObjectManager.cs (1)
259catch (NullReferenceException)
System.Windows.Forms (5)
System\Windows\Forms\Controls\Labels\LinkArea.LinkAreaConverter.cs (1)
133catch (NullReferenceException nullRef)
System\Windows\Forms\Controls\MonthCalendar\SelectionRangeConverter.cs (1)
152catch (NullReferenceException nullRef)
System\Windows\Forms\DataBinding\ListBindingConverter.cs (1)
95catch (NullReferenceException nullRef)
System\Windows\Forms\NativeWindow.cs (1)
455catch (NullReferenceException e)
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanelCellPositionTypeConverter.cs (1)
90catch (NullReferenceException nullRef)
System.Windows.Forms.Primitives (1)
System\Windows\Forms\PaddingConverter.cs (1)
103catch (NullReferenceException nullRef)
System.Xaml (1)
src\wpf\src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\CriticalExceptions.cs (1)
23return ex is NullReferenceException ||
UIAutomationClient (2)
MS\Internal\Automation\Accessible.cs (1)
105&& !(e is NullReferenceException)
MS\Internal\Automation\Misc.cs (1)
211return e is NullReferenceException || e is StackOverflowException || e is OutOfMemoryException || e is System.Threading.ThreadAbortException;
UIAutomationClientSideProviders (5)
MS\Internal\AutomationProxies\Accessible.cs (4)
653if (!(e is NullReferenceException) && HandleIAccessibleException(e)) 1094if (Misc.IsCriticalException(e) && ! (e is NullReferenceException)) 1269if (Misc.IsCriticalException(e) && ! (e is NullReferenceException)) 1296if (e is NullReferenceException)
MS\Internal\AutomationProxies\Misc.cs (1)
803return e is NullReferenceException || e is StackOverflowException || e is OutOfMemoryException || e is System.Threading.ThreadAbortException;