Skip to content

Commit 6925697

Browse files
committed
[Critical] Fixed issue with DeriedTopic
Ensured that setting the `DerivedTopic` would not fail if the `DerivedTopic` wasn't already set.
1 parent 909894d commit 6925697

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Ignia.Topics/Topic.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ public Topic DerivedTopic {
513513
value != this,
514514
"A topic may not derive from itself."
515515
);
516-
if (!_derivedTopic.Equals(value)) {
516+
if (!_derivedTopic?.Equals(value)?? false) {
517517
return;
518518
}
519519
_derivedTopic = value;

0 commit comments

Comments
 (0)