Take care of possible NullPointerException

This commit is contained in:
Hunter Stern
2016-02-09 08:22:39 -08:00
parent e7c46753ce
commit 30ce2f09a0
@@ -87,7 +87,7 @@ public class HTMLForm {
}
public boolean isMultipleFormSubmitInputs(String type) {
if (!type.toLowerCase().equals("submit"))
if (type != null && !type.toLowerCase().equals("submit"))
return false;
for (FormInput input : allInputs) {