Controller.java
Map<String, String[]> formData = request().body().asFormUrlEncoded();
if(formData.get("firstName") != null) {
JOptionPane.showMessageDialog(null, "not null");
}
When I click the save button after I run the program, it always returns an error message of NullPointerException
even if I put a value in the firstName textbox.