--- description: "Learn more about: Platform::NullReferenceException Class" title: "Platform::NullReferenceException Class" ms.date: "12/30/2016" ms.topic: "reference" f1_keywords: ["VCCORLIB/Platform::NullReferenceException", "VCCORLIB/Platform::NullReferenceException::NullReferenceException"] helpviewer_keywords: ["Platform::NullReferenceException"] ms.assetid: be202577-d898-4716-83cd-e3556fe8a241 --- # Platform::NullReferenceException Class Thrown when there is an attempt to dereference a null object reference. ## Syntax ```cpp public ref class NullReferenceException : COMException, IException, IPrintable, IEquatable ``` ### Remarks For more information, see the [COMException](../cppcx/platform-comexception-class.md) class. ### Requirements **Minimum supported client:** Windows 8 **Minimum supported server:** Windows Server 2012 **Namespace:** Platform **Metadata:** platform.winmd ## See also [Platform::COMException Class](../cppcx/platform-comexception-class.md)