Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit ca95c0f

Browse files
Missing null check
1 parent a5bc9e2 commit ca95c0f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/UnityExtension/Assets/Editor/GitHub.Unity/UI/PopupWindow.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,11 @@ public override void OnEnable()
6262
{
6363
base.OnEnable();
6464

65-
minSize = maxSize = ActiveView.Size;
66-
67-
ActiveView.OnEnable();
65+
if (ActiveView != null)
66+
{
67+
minSize = maxSize = ActiveView.Size;
68+
ActiveView.OnEnable();
69+
}
6870
}
6971

7072
public override void OnDisable()

0 commit comments

Comments
 (0)