Skip to content

Commit

Permalink
fix(codegen): fixed issue in CLanguageTemplateHelper
Browse files Browse the repository at this point in the history
  • Loading branch information
sruehl committed Feb 23, 2022
1 parent 080fe95 commit da3889f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ public String toVariableParseExpression(TypeDefinition baseType, Field field, Va
}

// If it references a complex, type we need to get that type's definition first.
final TypeDefinition propertyTypeDefinition = getTypeDefinitions().get(((ComplexTypeReference) propertyType).getName());
final TypeDefinition propertyTypeDefinition = getTypeDefinitions().get(((NonSimpleTypeReference) propertyType).getName());
// If we're not accessing any child property, no need to handle anything special.
if (variableLiteral.getChild().isEmpty()) {
return name;
Expand Down

0 comments on commit da3889f

Please sign in to comment.