Command line used:
(generated by intellij, but tested without intellij)
/usr/lib/jvm/java-1.11.0-openjdk-amd64/bin/java --module-path /usr/share/openjfx/lib --add-modules=javafx.controls --add-modules javafx.base,javafx.graphics --add-reads javafx.base=ALL-UNNAMED --add-reads javafx.graphics=ALL-UNNAMED -Dfile.encoding=UTF-8 -classpath /home/daniel/programs/PK1/out/production/PK1:/usr/share/openjfx/lib/src.zip:/usr/share/openjfx/lib/javafx.web.jar:/usr/share/openjfx/lib/javafx.base.jar:/usr/share/openjfx/lib/javafx.fxml.jar:/usr/share/openjfx/lib/javafx.media.jar:/usr/share/openjfx/lib/javafx.swing.jar:/usr/share/openjfx/lib/javafx.controls.jar:/usr/share/openjfx/lib/javafx.graphics.jar Testing.Main
I will also attach my java code for reproduction.
You can reproduce the bug like this:
After launching the program, enter any string, hit enter, enter a number, and hit enter again. The program should crash.
in case you need any further information/help, please feel free to ask :)