Skip to content

Commit

Permalink
Merge pull request #914 from FirelyTeam/feature/889-Additional-rules-…
Browse files Browse the repository at this point in the history
…will-get-confused-by-hybrid-typed-trees

fix: #889 Additional rules will get confused by hybrid typed trees
  • Loading branch information
ewoutkramer authored and marcovisserFurore committed Apr 16, 2019
1 parent 016d952 commit 5545cb5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Hl7.Fhir.Serialization/FhirXmlNode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,8 @@ object checkOrder(ITypedElement node, IExceptionSource ies, object state)
if (PermissiveParsing) return null;

var sdSummary = node.Definition;
if (sdSummary == null) return null;
var serializationDetails = node.GetXmlSerializationDetails();
if (sdSummary == null || serializationDetails == null) return null;

if (state is OrderRuleState ors)
{
Expand Down

0 comments on commit 5545cb5

Please sign in to comment.