# \[SOLVED\] Image() nullPtrException

**URL:** <https://discourse.processing.org/t/solved-image-nullptrexception/7424>\
**Category:** Processing.py\
**Created:** [January 11, 2019, 6:12pm UTC](https://discourse.processing.org/t/solved-image-nullptrexception/7424 "2019-01-11T18:12:00Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [January 11, 2019, 7:42pm UTC](https://discourse.processing.org/t/solved-image-nullptrexception/7424/6 "2019-01-11T19:42:35Z")

</div>

> [@Architector\_4](#):
>
> **dataPath()** and **sketchPath()** also only work in **setup()** or later.

Actually anything related to _sketchPath_ already works as soon as **settings()**. Same for `args[]`. 🤓

---

_[View the full topic](https://discourse.processing.org/t/solved-image-nullptrexception/7424)._
