mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-09-21 05:05:44 +00:00
Take care of possible NullPointerException
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user