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

java.lang.NullPointerException: Cannot invoke "String.lastIndexOf(String) #3

Open
carlwallin opened this issue Nov 17, 2023 · 0 comments

Comments

@carlwallin
Copy link

Hello!

I can't get the tool to work! I'm pretty new to the Java and Processing environment, so it might just be my lack of knowledge in the area. Although, I've noticed that the amount of activity hasn't been massive in the last couple of years, so maybe the latest version just doesn't work? Grateful for any help!

Here's the error:

Exception at frame -> setupLayout()
java.lang.NullPointerException: Cannot invoke "String.lastIndexOf(String)" because "" is null
at fonthighlightingeditor.utils.ToolHelpers.extractColorString(Unknown Source)
at fonthighlightingeditor.utils.ToolHelpers.extractColor(Unknown Source)
at fonthighlightingeditor.tool.ComponentCreator.createDisabledTextField(Unknown Source)
at fonthighlightingeditor.tool.FontHighlightingFrame.setupFrame(Unknown Source)
at fonthighlightingeditor.tool.FontHighlightingFrame.(Unknown Source)
at fonthighlightingeditor.tool.FontHighlightingEditor$1.run(Unknown Source)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:773)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:720)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:714)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

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

1 participant