Skip to content

Commit

Permalink
TypePartDefinition is null issue (#12436)
Browse files Browse the repository at this point in the history
  • Loading branch information
Skrypt authored Sep 16, 2022
1 parent 6e2c8e9 commit 517632d
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public override ShapeResult Factory(string shapeType, Func<IBuildShapeContext, V
var displayMode = _typePartDefinition.DisplayMode();
var hasDisplayMode = !String.IsNullOrEmpty(displayMode);
var isDisplayModeShapeType = shapeType == partType + DisplaySeparator + displayMode;
var stereotype = _typePartDefinition.ContentTypeDefinition.GetStereotype() ?? String.Empty;

// If the shape type and the field type only differ by the display mode
if (hasDisplayMode && isDisplayModeShapeType)
Expand All @@ -61,8 +62,6 @@ public override ShapeResult Factory(string shapeType, Func<IBuildShapeContext, V

result.Displaying(ctx =>
{
var stereotype = _typePartDefinition.ContentTypeDefinition.GetStereotype() ?? String.Empty;
string[] displayTypes;
if (editorPartType == shapeType)
Expand Down

0 comments on commit 517632d

Please sign in to comment.