question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NPE in version 2.5 on Windows

See original GitHub issue

After upgrading to FlatLaf 2.5, we get a NullPointerException when launching on Windows 10 and 11 (runs OK on macOS, and also on Windows in version 2.4).

Error is stable (happens every time during startup), but it is hard to pinpoint the cause and create a simple test class.

Stacktrace: java.lang.NullPointerException: Cannot read field "preferred" because "this.xTotal" is null at java.desktop/javax.swing.BoxLayout.preferredLayoutSize(BoxLayout.java:294) at java.desktop/java.awt.Container.preferredSize(Container.java:1826) at java.desktop/java.awt.Container.getPreferredSize(Container.java:1810) at java.desktop/javax.swing.JComponent.getPreferredSize(JComponent.java:1727) at java.desktop/java.awt.BorderLayout.preferredLayoutSize(BorderLayout.java:719) at java.desktop/java.awt.Container.preferredSize(Container.java:1826) at java.desktop/java.awt.Container.getPreferredSize(Container.java:1810) at java.desktop/javax.swing.JComponent.getPreferredSize(JComponent.java:1727) at com.formdev.flatlaf.ui.FlatRootPaneUI$FlatRootLayout.layoutContainer(FlatRootPaneUI.java:444) at java.desktop/java.awt.Container.layout(Container.java:1541) at java.desktop/java.awt.Container.doLayout(Container.java:1530) at java.desktop/java.awt.Container.validateTree(Container.java:1725) at java.desktop/java.awt.Container.validateTree(Container.java:1734) at java.desktop/java.awt.Container.validate(Container.java:1660) at java.desktop/java.awt.Container.validateUnconditionally(Container.java:1697) at java.desktop/java.awt.Window.show(Window.java:1055) at java.desktop/java.awt.Component.show(Component.java:1728) at java.desktop/java.awt.Component.setVisible(Component.java:1675) at java.desktop/java.awt.Window.setVisible(Window.java:1036)

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
DevCharlycommented, Oct 18, 2022

Great.

FlatLaf 2.6 is now available 😄

0reactions
ptorngrencommented, Oct 17, 2022

Yes, works fine!

Read more comments on GitHub >

github_iconTop Results From Across the Web

NPE during compilation of spec while testing a method with ...
Issue description The spock test fail to compile using gradle :test while testing method with vararg parameter. The compilation fails with ...
Read more >
Webstart NPE when server IP changes - Oracle Communities
Hi, I have a problem with a webstart application on a server with a dyndns URL: If I deploy the application and test...
Read more >
JDK-6881931 NPE in findAppletJDKLevel is thrown ... - Bug ID
Resolved: Release in which this issue/RFE has been resolved. Fixed : Release in which this issue/RFE has been fixed. The release containing this...
Read more >
Announcements 2022 - Apache Struts
28 November 2022 - Apache Struts version 6.1.1 General Availability ... regression btw struts 2.5.30 and 6.0.30 / submit s:checkbox unchecked -> NPE...
Read more >
Archived release notes for Azure HDInsight - Microsoft Learn
NPE when inserting data with 'distribute by' clause with dynpart sort ... Versions Affected: All HDP 2.5 versions including Apache Ranger ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found