# Processing 4 crash issue

**URL:** <https://discourse.processing.org/t/processing-4-crash-issue/36706>\
**Category:** Processing\
**Created:** [May 4, 2022, 1:28am UTC](https://discourse.processing.org/t/processing-4-crash-issue/36706 "2022-05-04T01:28:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![avong](https://avatars.discourse-cdn.com/v4/letter/a/4491bb/32.png) [@avong](https://discourse.processing.org/u/avong)\
**Post date:** [May 4, 2022, 1:28am UTC](https://discourse.processing.org/t/processing-4-crash-issue/36706/1 "2022-05-04T01:28:15Z")

</div>

> please format code with \</\> button \* [homework policy](https://discourse.processing.org/faq/#homework) \* [asking questions](https://discourse.processing.org/t/2147)

I used Processing 4 in android mode to develop application.

I stopped for some time, as at last before I stopped. I application compiling and loading in n the phone.  
Now I trying to resume work, I am getting error nullpointer error. Can’t tell where the issue coming from. See the attached screen shot

 ![IMG_20220504_021624_794](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/c/a/ca75f7645519bd006933f3e6e20db633c636fdd4.jpeg)

---

<div class="post-metadata">

**Author:** ![SomeOne](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/someone/32/8639_2.png) [@SomeOne](https://discourse.processing.org/u/SomeOne)\
**Post date:** [May 4, 2022, 9:48am UTC](https://discourse.processing.org/t/processing-4-crash-issue/36706/2 "2022-05-04T09:48:27Z")

</div>

There it is in the error. You use length on the list that is null (uninitialized?).

---

<div class="post-metadata">

**Author:** ![avong](https://avatars.discourse-cdn.com/v4/letter/a/4491bb/32.png) [@avong](https://discourse.processing.org/u/avong)\
**Post date:** [May 4, 2022, 11:17am UTC](https://discourse.processing.org/t/processing-4-crash-issue/36706/3 "2022-05-04T11:17:26Z")

</div>

I tried to review the code once more.  
The only arraylist initialized was though has been commented out but I still have that null pointer.

I am forced to reinstall Processing IDE.  
Now it will compiled and install on the phone with success report but I get another report saying “waiting for debugger”  
See newly attached screenshot

 ![Screenshot_20220504-121333](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/6/2/627bdb4a4966e34d1e996174877514f9446e4d06.png)

---

<div class="post-metadata">

**Author:** ![avong](https://avatars.discourse-cdn.com/v4/letter/a/4491bb/32.png) [@avong](https://discourse.processing.org/u/avong)\
**Post date:** [May 4, 2022, 12:09pm UTC](https://discourse.processing.org/t/processing-4-crash-issue/36706/4 "2022-05-04T12:09:29Z")

</div>

As for latest issue.  
I solved it by uncheck “wait for debug” in my phone settings.

Everything working Okay now.

However,  
For curiosity, why was the first error report until I had a clean installation of Processing IDE?
