# Report Designer Custom Component NPE

**URL:** <https://forum.inductiveautomation.com/t/report-designer-custom-component-npe/60643>\
**Category:** Module Development\
**Tags:** vision, ignition81\
**Created:** [June 10, 2022, 10:08pm UTC](https://forum.inductiveautomation.com/t/report-designer-custom-component-npe/60643 "2022-06-10T22:08:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [June 10, 2022, 10:08pm UTC](https://forum.inductiveautomation.com/t/report-designer-custom-component-npe/60643/1 "2022-06-10T22:08:05Z")

</div>

So, I’ve been experimenting with the multiple dependency behavior @Kevin.Herron explained to me a few weeks ago, with what I thought would be an easy test: adding NoteChart to the reporting subsystem when it is present, even if Vision is not present for the rest of the module.

{ Skip adventure story on the difficult-to-subclass AbstractXYChart class… }

Anyways, I have an alpha that builds. It registers in the designer and shows up in the palette. I drag it onto a page and … _nada_. No errors, just doesn’t show up at all.

Poke around with logging levels, determined quickly that `reporting.ReportMill` is noisy as hell, but noticed this one:

```auto
17:54:36.072 [AWT-EventQueue-0] DEBUG reporting.ReportMill.RMTool - Could not create new instance for Tool Class.java.lang.NullPointerException

```

Which I presume means my component is blowing up somehow. But it must be _ **before** _ my constructor ever runs (its WARN logger never fires).

Ideas? @KathyApplebaum, maybe?

Edit: That odd NPE shows up precisely when I release the mouse to drop, fwiw.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [June 10, 2022, 10:40pm UTC](https://forum.inductiveautomation.com/t/report-designer-custom-component-npe/60643/2 "2022-06-10T22:40:02Z")

</div>

Does your reporting component has a no-arg constructor? You’re dragging and dropping on to the page, I assume?

That error message is bad 😬

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [June 10, 2022, 11:38pm UTC](https://forum.inductiveautomation.com/t/report-designer-custom-component-npe/60643/3 "2022-06-10T23:38:53Z")

</div>

It does. And a factory for the config panel.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [June 11, 2022, 12:21am UTC](https://forum.inductiveautomation.com/t/report-designer-custom-component-npe/60643/4 "2022-06-11T00:21:03Z")

</div>

With a little inside help, I was able to narrow it down, and discovered a class initialization race. (:

Now, I’m debugging the config/properties panel. Much breakage. ):
