Skip to content

Small fix to XML session file error checking

Owen Parry requested to merge oparry/nektar:fix/xml-error-checking into master

Issue/feature addressed

See #302 (closed)

Proposed solution

Check for the existence of the root node in XML session files before doing any further parsing.

Implementation

The root node check was already taking place for all but the first XML file specified; this fix moves it to a separate function and calls it for the all files, including the first.

Tests

Not warranted, in my opinion

Checklist

  • Functions and classes, or changes to them, are documented.
  • Changelog is updated.
  • Contributed code is correctly formatted.
  • No extraneous files have been added (e.g. compiler output or test data files).
Edited by Owen Parry

Merge request reports