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

Commit 9949241

Browse files
authored
Merge pull request #8885 from mono/jstedfast-debugger-font-nre-fix
[Debugger] Fixed an NRE font crash
2 parents 6a96c48 + 447dc7a commit 9949241

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)