On Sun, 18 Oct 2020 04:31:51 GMT, Phil Race <p...@openjdk.org> wrote:

>> It does not look like the test uses any API which required the headful 
>> system, none of them throw a headless exception.
>
> if you run it locally with -Djava.awt.headless=true what happens ?
> And in the bug report I see
> Caused by: java.lang.NullPointerException
> at 
> java.desktop/javax.swing.plaf.basic.LazyActionMap.installLazyActionMap(LazyActionMap.java:64)
> 
> So installUI failed which is why there's no componentUI but why did we get 
> this NPE that started it ?

Running -Djava.awt.headless=true passes locally.
I tried running on mach5 in headless configuration also and it passes even on 
running several iterations. Link in JBS.
It seems last time it gets NPE when executing 
UIManager.getLookAndFeelDefaults().put(defaultsKey, map); which indicate
getLookAndFeelDefaults() returns null. But there are many instances in jdk 
swing code where no null check is done for
this getLookAndFeelDefaults() call and it is working fine.

-------------

PR: https://git.openjdk.java.net/jdk/pull/719

Reply via email to