jtreg IDEA Plugins throws NPE in Intellij 2023.1.2

Maurizio Cimadamore maurizio.cimadamore at oracle.com
Mon Jun 12 20:24:29 UTC 2023


Thanks for the update.

I'm aware of the deprecation warning - (although not quite sure on what 
the new idiom should replace that - it's been a while since I last 
looked at the plugin API).

Maurizio

On 12/06/2023 19:32, Christoph Schwentker wrote:
> Hi,
>
> I could solve it. Seems like there was something not correctly built 
> locally. I compiled again with the latest plugin version as well and 
> it works.
> There is, however, a deprecation warning in
> JTRegApplicationComponent
>
> about the usage of the ProjectComponent Interface:
> https://plugins.jetbrains.com/docs/intellij/plugin-components.html 
> <https://urldefense.com/v3/__https://plugins.jetbrains.com/docs/intellij/plugin-components.html__;!!ACWV5N9M2RV99hQ!I0apE9KBT4ag9SfDhr1MYAtuN72p1e3llGhPRF2ladzeqklI34HO_xdNSbhk3XwNG_xBesYdPdxKdSHpPjwEI-Rm65DS$> 
>
>
> Regards,
> Christoph
>
> Am Mo., 12. Juni 2023 um 19:39 Uhr schrieb Maurizio Cimadamore 
> <maurizio.cimadamore at oracle.com>:
>
>     That is odd. I am on the same Intellij version, but am not seeing
>     the NPE. But someting magic has to happen under the hood because I
>     don't see initialization code for all the UI components, which
>     makes me thing that the logic here is relying on some IntelliJ API
>     to populate the form. Maybe something has changed there?
>
>     Cheers
>     Maurizio
>
>     On 10/06/2023 19:45, Christoph Schwentker wrote:
>>     HI,
>>
>>     After I managed to get the plugin working with the latest
>>     IntelliJ version (see my PR [1]) , I am now getting NPE in the
>>     UI. Log is attached.
>>
>>     2023-06-1020:43:20,580[1785238] SEVERE - #c.i.i.p.PluginManager-
>>     Plugin to blame: jtreg Test Support version: 1.15
>>     2023-06-1020:43:20,677[1785335] SEVERE - #c.i.u.c.QueueProcessor-
>>     Cannot invoke "javax.swing.JTextField.getText()"because
>>     "this.jtregOptions"is null
>>     java.lang.NullPointerException: Cannot invoke
>>     "javax.swing.JTextField.getText()"because "this.jtregOptions"is null
>>
>>     > https://github.com/openjdk/jtreg/pull/157
>>     <https://urldefense.com/v3/__https://github.com/openjdk/jtreg/pull/157__;!!ACWV5N9M2RV99hQ!I0apE9KBT4ag9SfDhr1MYAtuN72p1e3llGhPRF2ladzeqklI34HO_xdNSbhk3XwNG_xBesYdPdxKdSHpPjwEI6N_kboa$>
>>
>>     Regards,
>>     Christoph (siedlerchr)
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/ide-support-dev/attachments/20230612/bd84db38/attachment-0001.htm>


More information about the ide-support-dev mailing list