# Why am I having the NullPointerException error?

**URL:** <https://discourse.processing.org/t/why-am-i-having-the-nullpointerexception-error/31876>\
**Category:** Libraries\
**Created:** [August 24, 2021, 1:15pm UTC](https://discourse.processing.org/t/why-am-i-having-the-nullpointerexception-error/31876 "2021-08-24T13:15:48Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [August 24, 2021, 5:20pm UTC](https://discourse.processing.org/t/why-am-i-having-the-nullpointerexception-error/31876/3 "2021-08-24T17:20:26Z")

</div>

Hello,

Try this:  
`String FileName = "";`

![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/a/a247dee1ed7ceb6c180bfad4296e898eed9f08d8.png)

I created a test.iL7 to test.

Reference:  
[https://forum.processing.org/two/discussion/8071/why-do-i-get-a-nullpointerexception](https://forum.processing.org/two/discussion/8071/why-do-i-get-a-nullpointerexception)

`:)`

---

_[View the full topic](https://discourse.processing.org/t/why-am-i-having-the-nullpointerexception-error/31876)._
