30 instantiations of NullReferenceException
mscorlib (13)
system\appdomain.cs (10)
1557throw new NullReferenceException(); 1581throw new NullReferenceException(); 1606throw new NullReferenceException(); 1622throw new NullReferenceException(); 1640throw new NullReferenceException(); 1660throw new NullReferenceException(); 1681throw new NullReferenceException(); 1718throw new NullReferenceException(); 1771throw new NullReferenceException(); 1805throw new NullReferenceException();
system\enum.cs (1)
822throw new NullReferenceException();
system\string.cs (2)
552throw new NullReferenceException(); //other callers who do not use the callvirt instruction 572throw new NullReferenceException(); //other callers who do not use the callvirt instruction
PresentationCore (3)
Core\CSharp\System\Windows\Media\ColorContext.cs (1)
265throw new NullReferenceException();
Core\CSharp\System\Windows\Media\ImageSourceConverter.cs (1)
177throw new NullReferenceException();
Core\CSharp\System\Windows\Media\VisualTreeHelper.cs (1)
121throw new NullReferenceException("dpiInfo cannot be null");
PresentationFramework (2)
src\Framework\System\Windows\Controls\Primitives\Popup.cs (2)
1868Exception nre = new NullReferenceException(); 1869throw new NullReferenceException(nre.Message, SavedException);
System.Windows.Forms (2)
winforms\Managed\System\WinForms\UnsafeNativeMethods.cs (2)
316throw new System.NullReferenceException("PRINTDLG data is null"); 323throw new System.NullReferenceException("PRINTDLG data is null");
System.Workflow.ComponentModel (8)
AuthoringOM\Design\DesignerWidgets.cs (1)
2292throw new NullReferenceException(SR.GetString(SR.Error_CreatingToolTip));
AuthoringOM\ScheduleChanges.cs (1)
533throw new NullReferenceException(SR.GetString(SR.Error_InvalidRootForWorkflowChanges));
AuthoringOM\Serializer\ActivitySurrogate.cs (1)
229throw new NullReferenceException(SR.GetString(SR.Error_InvalidRootForWorkflowChanges));
AuthoringOM\Serializer\DictionarySurrogate.cs (3)
26throw new NullReferenceException("keysProperty"); 32throw new NullReferenceException("valuesProperty"); 89throw new NullReferenceException("addMethod");
AuthoringOM\Serializer\GenericQueueSurrogate.cs (1)
66throw new NullReferenceException("enqueueMethod");
AuthoringOM\Serializer\ListSurrogate.cs (1)
67throw new NullReferenceException("addMethod");
System.Xml (2)
System\Xml\Core\XmlReader.cs (2)
1034throw new NullReferenceException(); 1042throw new NullReferenceException();
116 references to NullReferenceException
ComSvcConfig (14)
ComAdminWrapper.cs (6)
252if (ex is NullReferenceException || ex is SEHException) 319if (ex is NullReferenceException || ex is SEHException) 401if (ex is NullReferenceException || ex is SEHException) 436if (ex is NullReferenceException || ex is SEHException) 514if (e is NullReferenceException || e is SEHException) 564if (e is NullReferenceException || e is SEHException)
ComplusEndpointConfigContainer.cs (3)
100if (ex is NullReferenceException || ex is SEHException) 261if (ex is NullReferenceException || ex is SEHException) 459if (ex is NullReferenceException || ex is SEHException)
SvcFileManager.cs (1)
249if (e is NullReferenceException || e is SEHException)
Tool.cs (3)
253if (e is NullReferenceException || e is SEHException) 600if (e is NullReferenceException || e is SEHException) 946if (e is NullReferenceException || e is SEHException)
WasEndpointConfigContainer.cs (1)
468if (ex is NullReferenceException || ex is SEHException)
mscorlib (28)
system\runtime\compilerservices\TaskAwaiter.cs (15)
79/// <exception cref="System.NullReferenceException">The awaiter was not properly initialized.</exception> 108/// <exception cref="System.NullReferenceException">The awaiter was not properly initialized.</exception> 205/// <exception cref="System.NullReferenceException">The awaiter was not properly initialized.</exception> 316/// <exception cref="System.NullReferenceException">The awaiter was not properly initialized.</exception> 325/// <exception cref="System.NullReferenceException">The awaiter was not properly initialized.</exception> 336/// <exception cref="System.NullReferenceException">The awaiter was not properly initialized.</exception> 346/// <exception cref="System.NullReferenceException">The awaiter was not properly initialized.</exception> 406/// <exception cref="System.NullReferenceException">The awaiter was not properly initialized.</exception> 415/// <exception cref="System.NullReferenceException">The awaiter was not properly initialized.</exception> 426/// <exception cref="System.NullReferenceException">The awaiter was not properly initialized.</exception> 436/// <exception cref="System.NullReferenceException">The awaiter was not properly initialized.</exception> 494/// <exception cref="System.NullReferenceException">The awaiter was not properly initialized.</exception> 503/// <exception cref="System.NullReferenceException">The awaiter was not properly initialized.</exception> 514/// <exception cref="System.NullReferenceException">The awaiter was not properly initialized.</exception> 524/// <exception cref="System.NullReferenceException">The awaiter was not properly initialized.</exception>
system\runtime\interopservices\marshal.cs (8)
434catch (NullReferenceException) 475catch (NullReferenceException) 519catch (NullReferenceException) 600catch (NullReferenceException) 627catch (NullReferenceException) 666catch (NullReferenceException) 725catch (NullReferenceException) 800catch (NullReferenceException)
system\runtime\serialization\objectmanager.cs (1)
330} catch (NullReferenceException) {
system\runtime\versioning\multitargetinghelpers.cs (1)
67return ex is NullReferenceException
system\string.cs (3)
1389catch(NullReferenceException) { 1720catch (NullReferenceException) { 1754catch (NullReferenceException) {
PresentationBuildTasks (10)
Base\MS\Internal\CriticalExceptions.cs (1)
25return ex is NullReferenceException ||
BuildTasks\Microsoft\Build\Tasks\Windows\FileClassifier.cs (1)
116if (e is NullReferenceException || e is SEHException)
BuildTasks\Microsoft\Build\Tasks\Windows\GetWinFXPath.cs (1)
101if (e is NullReferenceException || e is SEHException)
BuildTasks\Microsoft\Build\Tasks\Windows\MergeLocalizationDirectives.cs (1)
97if (e is NullReferenceException || e is SEHException)
BuildTasks\Microsoft\Build\Tasks\Windows\ResourcesGenerator.cs (1)
217if (e is NullReferenceException || e is SEHException)
BuildTasks\Microsoft\Build\Tasks\Windows\UidManager.cs (4)
110if (e is NullReferenceException || e is SEHException) 411if (e is NullReferenceException || e is SEHException) 1013if (e is NullReferenceException || e is SEHException) 1055if (e is NullReferenceException || e is SEHException)
BuildTasks\Microsoft\Build\Tasks\Windows\UpdateManifestForBrowserApplication.cs (1)
149if (e is NullReferenceException || e is SEHException)
PresentationCore (1)
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (1)
190catch (NullReferenceException)
PresentationFramework (17)
src\Framework\MS\Internal\AppModel\XappLauncher.cs (3)
285if (exception is NullReferenceException || exception is SEHException) 326if (exception is NullReferenceException || exception is SEHException) 1053catch(NullReferenceException)
src\Framework\MS\Internal\WindowsRuntime\Windows\Data\Text\WordsSegmenter.cs (1)
157/// <exception cref="NullReferenceException">Internal reference to WinRT WordsSegmenter object is null</exception>
src\Framework\System\Windows\Shell\JumpList.cs (1)
902if (e is NullReferenceException || e is System.Runtime.InteropServices.SEHException)
src\Shared\MS\Internal\WindowsRuntime\ReflectionHelper.cs (12)
51/// <exception cref="NullReferenceException"><i>type</i> is <b>null</b></exception> 85/// <exception cref="NullReferenceException"><i>type</i> is <b>null</b></exception> 115/// <exception cref="NullReferenceException"><i>obj</i> is <b>null</b></exception> 134/// <exception cref="NullReferenceException"><i>obj</i> is <b>null</b></exception> 167/// <exception cref="NullReferenceException"><i>obj</i> is <b>null</b></exception> 198/// <exception cref="NullReferenceException"><i>obj</i> is <b>null</b></exception> 221/// <exception cref="NullReferenceException"><i>obj</i> is <b>null</b></exception> 254/// <exception cref="NullReferenceException"><i>obj</i> is <b>null</b></exception> 274/// <exception cref="NullReferenceException"><i>obj</i> is <b>null</b></exception> 301/// <exception cref="NullReferenceException"><i>type</i> is null</exception> 326/// <exception cref="NullReferenceException"><i>type</i> is null</exception> 353/// <exception cref="NullReferenceException"><i>type</i> is null</exception>
System (1)
misc\ClientUtils.cs (1)
38return ex is NullReferenceException
System.Activities.Core.Presentation (1)
System\Activities\Core\Presentation\TryCatchDesigner.xaml.cs (1)
77typeof(NullReferenceException),
System.Data (2)
fx\src\data\System\Data\Common\AdapterUtil.cs (1)
371static private readonly Type NullReferenceType = typeof(NullReferenceException);
fx\src\data\System\Data\SqlClient\SqlEnums.cs (1)
477/// <exception cref="NullReferenceException">
System.Data.DataSetExtensions (1)
System\Data\DataSetUtil.cs (1)
118static private readonly Type NullReferenceType = typeof(System.NullReferenceException);
System.Data.Entity (3)
System\Data\Common\EntityUtil.cs (1)
1951static private readonly Type NullReferenceType = typeof(System.NullReferenceException);
System\Data\Common\Internal\Materialization\Shaper.cs (1)
862catch (NullReferenceException)
System\Data\Common\Internal\Materialization\Translator.cs (1)
837catch (NullReferenceException)
System.Data.Entity.Design (1)
System\Data\Entity\Design\Common\MetadataUtil.cs (1)
238static private readonly Type NullReferenceType = typeof(System.NullReferenceException);
System.Drawing (1)
misc\ClientUtils.cs (1)
38return ex is NullReferenceException
System.ServiceModel (18)
System\ServiceModel\Channels\HttpChannelFactory.cs (3)
1306catch (NullReferenceException nullReferenceException) 1611catch (NullReferenceException nullReferenceException) 1668catch (NullReferenceException nullReferenceException)
System\ServiceModel\Channels\HttpChannelHelpers.cs (1)
3725public static Exception CreateNullReferenceResponseException(NullReferenceException nullReferenceException)
System\ServiceModel\Channels\MsmqQueue.cs (1)
905if (e is NullReferenceException || e is SEHException)
System\ServiceModel\ComIntegration\ComIntegrationManifestGenerator.cs (2)
62if (e is NullReferenceException || e is SEHException) 105if (e is NullReferenceException || e is SEHException)
System\ServiceModel\Configuration\ConfigurationHelpers.cs (4)
40catch (NullReferenceException) // System.Configuration.ConfigurationElement bug 72catch (NullReferenceException) // System.Configuration.ConfigurationElement bug 102catch (NullReferenceException) // System.Configuration.ConfigurationElement bug 134catch (NullReferenceException) // System.Configuration.ConfigurationElement bug
System\ServiceModel\Security\WSSecurityPolicy.cs (4)
1943if (e is NullReferenceException) 2361if (e is NullReferenceException) 2888if (e is NullReferenceException) 2907if (e is NullReferenceException)
System\ServiceModel\Security\WSSecurityPolicy11.cs (1)
93if (e is NullReferenceException)
System\ServiceModel\SpnEndpointIdentity.cs (1)
131if (e is NullReferenceException || e is SEHException)
System\ServiceModel\UpnEndpointIdentity.cs (1)
201if (e is NullReferenceException)
System.Web (1)
Hosting\IPipelineRuntime.cs (1)
753return ex is NullReferenceException
System.Web.DataVisualization (1)
WebForm\General\ChartHttpHandler.cs (1)
285catch (NullReferenceException nre)
System.Web.Entity (1)
System\Data\WebControls\EntityDataSourceUtil.cs (1)
1067static private readonly Type NullReferenceType = typeof(System.NullReferenceException);
System.Windows.Forms (5)
misc\ClientUtils.cs (1)
38return ex is NullReferenceException
misc\MultitargetUtil.cs (1)
55return ex is NullReferenceException
winforms\Managed\System\WinForms\ListBindingConverter.cs (1)
102catch (NullReferenceException nullRef)
winforms\Managed\System\WinForms\NativeWindow.cs (1)
769catch (NullReferenceException e) {
winforms\Managed\System\WinForms\SelectionRangeConverter.cs (1)
155catch (NullReferenceException nullRef)
System.Workflow.ComponentModel (1)
AuthoringOM\Design\Dialogs\TypeBrowserDialog.cs (1)
1230catch (NullReferenceException)
System.Xml (1)
System\Xml\XmlException.cs (1)
305e is NullReferenceException ||
UIAutomationClient (2)
MS\Internal\Automation\Accessible.cs (1)
125&& !(e is NullReferenceException)
MS\Internal\Automation\Misc.cs (1)
248return e is NullReferenceException || e is StackOverflowException || e is OutOfMemoryException || e is System.Threading.ThreadAbortException;
UIAutomationClientsideProviders (5)
MS\Internal\AutomationProxies\Accessible.cs (4)
682if (!(e is NullReferenceException) && HandleIAccessibleException(e)) 1161if (Misc.IsCriticalException(e) && ! (e is NullReferenceException)) 1337if (Misc.IsCriticalException(e) && ! (e is NullReferenceException)) 1364if (e is NullReferenceException)
MS\Internal\AutomationProxies\Misc.cs (1)
823return e is NullReferenceException || e is StackOverflowException || e is OutOfMemoryException || e is System.Threading.ThreadAbortException;
WindowsBase (1)
Base\MS\Internal\CriticalExceptions.cs (1)
25return ex is NullReferenceException ||