--- title: "Platform::NullReferenceException Class | Microsoft Docs" ms.custom: "" ms.date: "12/30/2016" ms.technology: "cpp-windows" ms.topic: "reference" f1_keywords: ["VCCORLIB/Platform::NullReferenceException", "VCCORLIB/Platform::NullReferenceException::NullReferenceException"] dev_langs: ["C++"] helpviewer_keywords: ["Platform::NullReferenceException"] ms.assetid: be202577-d898-4716-83cd-e3556fe8a241 author: "ghogen" ms.author: "ghogen" ms.workload: ["cplusplus"] --- # 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)