Skip to content
This repository was archived by the owner on Oct 4, 2021. It is now read-only.

Commit 447dc7a

Browse files
committed
[Debugger] Fixed an NRE font crash
1 parent 6a96c48 commit 447dc7a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger/ObjectValue/Mac/MacDebuggerObjectCellViewBase.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,9 @@ protected void UpdateFont (NSControl control, int sizeDelta = 0)
157157
{
158158
var font = TreeView.CustomFont ?? TreeView.Font;
159159

160+
if (font == null)
161+
return;
162+
160163
if (sizeDelta != 0) {
161164
control.Font = NSFont.FromDescription (font.FontDescriptor, font.PointSize + sizeDelta);
162165
} else {

0 commit comments

Comments
 (0)