Skip to content

Commit 982a407

Browse files
committed
fix the semantic equal custom type bump
1 parent 92d4d2e commit 982a407

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/testing/testtypes/stringwithsemanticequals.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ func (v StringValueWithSemanticEquals) Equal(o attr.Value) bool {
118118
}
119119

120120
func (v StringValueWithSemanticEquals) StringSemanticEquals(ctx context.Context, otherV basetypes.StringValuable) (bool, diag.Diagnostics) {
121-
if v.SemanticallyEqualTo != nil {
121+
if v.SemanticallyEqualTo != nil && !v.SemanticallyEqualTo.IsNull() {
122122
return v.SemanticallyEqualTo.Equal(otherV), v.SemanticEqualsDiagnostics
123123
}
124124
return v.SemanticEquals, v.SemanticEqualsDiagnostics

0 commit comments

Comments
 (0)