Code development platform for open source projects from the European Union institutions

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
No related branches found
No related tags found
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.
Finish editing this message first!
Please register or to comment