# Object reference not set to an instance of an object

**URL:** <https://forums.chaos.com/t/object-reference-not-set-to-an-instance-of-an-object/167465>\
**Category:** General\
**Tags:** enscape-revit\
**Created:** [November 8, 2019, 10:41am UTC](https://forums.chaos.com/t/object-reference-not-set-to-an-instance-of-an-object/167465 "2019-11-08T10:41:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ronWu](https://avatars.discourse-cdn.com/v4/letter/r/97f17d/32.png) [@ronWu](https://forums.chaos.com/u/ronWu)\
**Post date:** [November 8, 2019, 10:41am UTC](https://forums.chaos.com/t/object-reference-not-set-to-an-instance-of-an-object/167465/1 "2019-11-08T10:41:19Z")

</div>

I want to create a view with “create a view” and then I get this? And no view…

 ![pasted-from-clipboard.png](https://europe1.discourse-cdn.com/chaosprd/original/3X/a/2/a2a6bf96b21dcd8835f7bb4124eae5b4a091b132.png)

---

<div class="post-metadata">

**Author:** ![Demian\_Gutberlet](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/demian_gutberlet/32/5_2.png) [@Demian\_Gutberlet](https://forums.chaos.com/u/Demian_Gutberlet)\
**Post date:** [November 8, 2019, 2:00pm UTC](https://forums.chaos.com/t/object-reference-not-set-to-an-instance-of-an-object/167465/2 "2019-11-08T14:00:29Z")

</div>

Could you please make sure you’re running our [latest release](https://forum.enscape3d.com/index.php?thread/2317-how-can-i-make-sure-that-my-enscape-is-up-to-date/)? If that doesn’t help or you’re already up to date, could you please re-install Enscape? That may help already. In case it doesn’t, updating your windows as well as the graphics card drivers could instead, if you’re still not successful with creating a view, please kindly submit a dedicated feedback report as described [here](https://enscape3d.com/knowledgebase/using-the-feedback-button/).

In the submission form, simply briefly describe your issue and/or add a link to this thread. 🙂

Thank you in advance!

---

<div class="post-metadata">

**Author:** ![harlybake](https://avatars.discourse-cdn.com/v4/letter/h/f475e1/32.png) [@harlybake](https://forums.chaos.com/u/harlybake)\
**Post date:** [December 22, 2020, 10:21am UTC](https://forums.chaos.com/t/object-reference-not-set-to-an-instance-of-an-object/167465/3 "2020-12-22T10:21:49Z")

</div>

An Object is an instance of a Class , it is stored some where in memory. A reference is what is used to describe the pointer to the memory location where the Object resides. The message “object [reference not set](http://csharp.net-informations.com/language/reference.htm) to an instance of an object” means that you are referring to an object the does not exist or was deleted or cleaned up. It’s usually better to avoid a NullReferenceException than to handle it after it occurs. To prevent the error, objects that could be null should be tested for null before being used.

```auto
if (mClass != null)
{
// Go ahead and use mClass
mClass.property = ...
}
else
{
// Attempting to use mClass here will result in NullReferenceException
}

```
