Skip to content

Commit 9f44fef

Browse files
committed
#74 Fix NRE in UpdateBadgeProperties
1 parent 454f208 commit 9f44fef

File tree

1 file changed

+5
-0
lines changed
  • Source/Plugin.Badge.Abstractions

1 file changed

+5
-0
lines changed

Source/Plugin.Badge.Abstractions/Badge.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ public Badge()
7171

7272
protected virtual void UpdateBadgeProperties()
7373
{
74+
if(this.Content == null)
75+
{
76+
return;
77+
}
78+
7479
if (this.Content.FontAttributes != this.BadgeFontAttributes)
7580
{
7681
this.Content.FontAttributes = this.BadgeFontAttributes;

0 commit comments

Comments
 (0)