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

Exception while creating FTLFrame #105

Open
Perry1990 opened this issue Dec 9, 2017 · 2 comments
Open

Exception while creating FTLFrame #105

Perry1990 opened this issue Dec 9, 2017 · 2 comments

Comments

@Perry1990
Copy link

Compiled in IntelliJ. Editor refused to start. Here is the exception:

06:54:53.879 [AWT-EventQueue-0] ERROR net.blerf.ftl.FTLProfileEditor - Exception while creating FTLFrame.
java.lang.NullPointerException: null
at javax.swing.ImageIcon.(ImageIcon.java:217) ~[?:1.8.0_151]
at net.blerf.ftl.ui.FTLFrame.(FTLFrame.java:112) ~[main/:?]
at net.blerf.ftl.FTLProfileEditor.guiInit(FTLProfileEditor.java:198) [main/:?]
at net.blerf.ftl.FTLProfileEditor.access$000(FTLProfileEditor.java:29) [main/:?]
at net.blerf.ftl.FTLProfileEditor$1.run(FTLProfileEditor.java:44) [main/:?]
...

Process finished with exit code 1

@Malanius
Copy link

Malanius commented Dec 9, 2017

For me it is working fine in IntelliJ.

How did you import the project?

@Vhati
Copy link
Owner

Vhati commented Dec 9, 2017

I'm not familiar with IntelliJ, but that's a weird place to glitch.

at net.blerf.ftl.ui.FTLFrame.(FTLFrame.java:112)

.
Source: FTLFrame.java (circa 2017-11-27)

110: private ImageIcon openIcon = new ImageIcon( ClassLoader.getSystemResource( "open.gif" ) );
111: private ImageIcon saveIcon = new ImageIcon( ClassLoader.getSystemResource( "save.gif" ) );
112: private ImageIcon unlockIcon = new ImageIcon( ClassLoader.getSystemResource( "unlock.png" ) );
113: private ImageIcon aboutIcon = new ImageIcon( ClassLoader.getSystemResource( "about.gif" ) );
114: private ImageIcon updateIcon = new ImageIcon( ClassLoader.getSystemResource( "update.gif" ) );

It had to have found two images already.

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

3 participants