-
-
Notifications
You must be signed in to change notification settings - Fork 279
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Random JProgressBar exceptions #830
Comments
Did you post the right link? I can not find any reference to FlatLaf on that page. Looks like a threading issue. FlatLaf/flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatProgressBarUI.java Line 229 in bde25f6
A few lines before, "this.progressBar" is also used, but did not throw a NPE: FlatLaf/flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatProgressBarUI.java Line 224 in bde25f6
So the field was set to null in another thread. I would recommend to set a breakpoint at |
I've added some logs (including stack trace) to Please try latest |
I had forgotten that I made this issue, an apology for not responding, the work had me busy haha, I will be doing tests |
I have already done the tests and I see that the log is thrown, I close the window within the EDT and at the moment the exception has not been thrown, anyway, thank you for the message telling me that I should run it in the EDT sometimes it jumps, but it is very very strange , weird swing stuff haha, I'll close this issue |
Hello, I recently improved the SplashScreen of my application by injecting it in some parts of my application configurations, it rarely throws these 2 exceptions
Exception in thread “AWT-EventQueue-0” java.lang.NullPointerException: Cannot read field “width” because “d” is null
or
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException: Cannot invoke "javax.swing.JProgressBar.isIndeterminate()" because "this.progressBar" is null
At first I thought it was due to not running within the EDT but it still rarely throws the exception, at first I thought it was my implementation, but I tried without placing a flatlaf theme and the error from the more than 100 times I ran the program did not throw the error again
This is the only thing I do in some configurations,
and this is how I update the progress, Previously the code was only
and it kept throwing the same error
It doesn't really affect anything, it just throws that exception....
I don't have the stack for the other error because it hasn't appeared, but a quick search on Google turned up this issue from another project saying that the error was from FlatLaf
I am using FlatLaf 3.4.1
OS
Java versions
The text was updated successfully, but these errors were encountered: