Processing-java 3.5.3 won't launch on Mac OS X 10.15

EDIT: HAHAHA I don’t know what went wrong with my code but it turns out that the java launcher was working properly and I just messed up in my code somewhere.

I was working on a sketch with Processing this morning and it was working fine. But when I put my computer to sleep and turned it on a few minutes later to resume my work, my sketch suddenly stopped launching properly. The application does not respond, and it prints the following message in the Processing console:

java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
	at processing.core.PApplet.runSketch(PApplet.java:10845)
	at processing.core.PApplet.main(PApplet.java:10613)
Caused by: java.lang.reflect.InvocationTargetException
	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 processing.core.PApplet.runSketch(PApplet.java:10839)
	... 1 more
Caused by: java.lang.NullPointerException
	at processing.core.PApplet.textWidth(PApplet.java:13155)
	at Paint_by_Dot.<init>(Paint_by_Dot.java:35)
	... 6 more
RuntimeException: java.lang.reflect.InvocationTargetException
Could not run the sketch (Target VM failed to initialize).
For more information, read revisions.txt and Help → Troubleshooting.

It may be an issue with MacOS Catalina, but I’m not sure and any help would be appreciated because I need Processing to do projects for school.
Thanks!