mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-11-08 23:13:28 +00:00
Take care of possible NullPointerException
This commit is contained in:
1 parent
e7c46753ce
commit
30ce2f09a0
1 file changed
+1
-1
@@ -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