Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit 2ffcf700 authored by Markus QUARITSCH's avatar Markus QUARITSCH
Browse files

xmlvalidator: handle the case where validationeventargs may be null

parent 7f906bb4
Branches
Tags
No related merge requests found
......@@ -129,7 +129,7 @@ namespace TUGraz.VectoCore.Utils
public static void CallBackExceptionOnError(XmlSeverityType severity, ValidationEvent evt)
{
if (severity == XmlSeverityType.Error) {
throw new VectoException("Validation error: {0}", evt.ValidationEventArgs.Message);
throw new VectoException("Validation error: {0}", evt.ValidationEventArgs?.Message ?? evt.Exception?.Message);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment