Skip to content
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

Material UI Lite Themes not working #89

Closed
Blanco27 opened this issue Apr 27, 2020 · 2 comments
Closed

Material UI Lite Themes not working #89

Blanco27 opened this issue Apr 27, 2020 · 2 comments
Milestone

Comments

@Blanco27
Copy link
Contributor

When choosing a Theme, that is a material ui theme the following exception is thrown:

15:42:20,187 ERROR AbstractLeaUncaughtExceptionHandler:435 - Uncaught exception on thread: Thread[main,5,]
java.lang.NullPointerException
	at java.io.Reader.<init>(Reader.java:78)
	at java.io.InputStreamReader.<init>(InputStreamReader.java:113)
	at com.formdev.flatlaf.IntelliJTheme.<init>(IntelliJTheme.java:112)
	at com.formdev.flatlaf.intellijthemes.materialthemeuilite.Utils.loadTheme(Utils.java:35)
	at com.formdev.flatlaf.intellijthemes.materialthemeuilite.FlatGitHubIJTheme.<init>(FlatGitHubIJTheme.java:36)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	at java.lang.Class.newInstance(Class.java:442)
	at javax.swing.UIManager.setLookAndFeel(UIManager.java:583)

We've installed the theme via:

UIManager.setLookAndFeel("com.formdev.flatlaf.intellijthemes.materialthemeuilite.FlatGitHubIJTheme");

Using the static install method doesn't work either, but doesn't throw an exception.

This only happens with the material themes. The other ones work fine with both methods. Is there anything we are overlooking?

@DevCharly
Copy link
Collaborator

Thanks, fixed in master (see PR #88)

Could you test the latest 0.33-SNAPSHOT snapshot?
https://github.com/JFormDesigner/FlatLaf#snapshots

@DevCharly DevCharly added this to the 0.33 milestone Apr 27, 2020
@DevCharly
Copy link
Collaborator

fixed in 0.33

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants