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(
	at processing.core.PApplet.main(
Caused by: java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
	at java.lang.reflect.Constructor.newInstance(
	at processing.core.PApplet.runSketch(
	... 1 more
Caused by: java.lang.NullPointerException
	at processing.core.PApplet.textWidth(
	at Paint_by_Dot.<init>(
	... 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.