Alternatively, enter only a special character such as $
Observed Result:
Exception in thread "AWT-EventQueue-0" java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.charAt(Unknown Source)
at main.java.GUINew.Lightboard.turnOnLight(Lightboard.java:263)
at main.java.GUINew.IOPanel$EncryptButtonListener.actionPerformed(IOPanel.java:231)
Expected Result:
No assert. The output text box should read "Input text must contain at least one letter or number." per the EncryptButtonListener class.
Steps to reproduce:
Observed Result: Exception in thread "AWT-EventQueue-0" java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.charAt(Unknown Source) at main.java.GUINew.Lightboard.turnOnLight(Lightboard.java:263) at main.java.GUINew.IOPanel$EncryptButtonListener.actionPerformed(IOPanel.java:231)
Expected Result: No assert. The output text box should read "Input text must contain at least one letter or number." per the EncryptButtonListener class.