Only operate on non-empty input

This commit is contained in:
n1073645 2020-04-17 15:11:25 +01:00
parent b950364606
commit 329d9a1c90

View file

@ -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: {