Only operate on non-empty input
This commit is contained in:
parent
b950364606
commit
329d9a1c90
@ -35,6 +35,7 @@ class XMLValidator extends Operation {
|
||||
*/
|
||||
run(input, args) {
|
||||
|
||||
if (input)
|
||||
try {
|
||||
// Overwrite error handler since the built-in one does not raise exceptions.
|
||||
(new DOMParser.DOMParser({errorHandler: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user