java.lang.NullPointerException: Cannot invoke "String.lastIndexOf(String)
carlwallin opened this issue · 0 comments
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)