# \[SOLVED\] I get a NullPointerException when switching from the default rendering technique to JavaFX 2D

**URL:** <https://discourse.processing.org/t/solved-i-get-a-nullpointerexception-when-switching-from-the-default-rendering-technique-to-javafx-2d/42601>\
**Category:** Libraries\
**Created:** [August 16, 2023, 8:06pm UTC](https://discourse.processing.org/t/solved-i-get-a-nullpointerexception-when-switching-from-the-default-rendering-technique-to-javafx-2d/42601 "2023-08-16T20:06:32Z")\
**Posts on this page:** 1\
**Showing post:** 6

<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 16, 2023, 8:43pm UTC](https://discourse.processing.org/t/solved-i-get-a-nullpointerexception-when-switching-from-the-default-rendering-technique-to-javafx-2d/42601/6 "2023-08-16T20:43:06Z")

</div>

Focus on this:

`java.lang.NullPointerException: Cannot invoke "String.hashCode()" because "this.name" is null`

Lots of good stuff here including `NullPointerException`:

> [@I dont know why it keep saying NullPointerException](https://discourse.processing.org/t/i-dont-know-why-it-keep-saying-nullpointerexception/30134/4):
>
> Hello, Some resources that may help now or in future: [https://forum.processing.org/two/discussion/8093/frequently-asked-questions](https://forum.processing.org/two/discussion/8093/frequently-asked-questions) (See Exceptions) [Home · processing/processing Wiki · GitHub](https://github.com/processing/processing/wiki) (See Common Errors)slight_smile

`:)`

---

_[View the full topic](https://discourse.processing.org/t/solved-i-get-a-nullpointerexception-when-switching-from-the-default-rendering-technique-to-javafx-2d/42601)._
