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

Commit 3b8a683

Browse files
committed
[Ide] OptionsDialog checks for null panels.
1 parent 63cdb81 commit 3b8a683

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/OptionsDialog.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -663,6 +663,10 @@ SectionPage CreatePage (TreeIter it, OptionsDialogSection section, object dataOb
663663
LoggingService.LogInternalError ("Error while creating options panel: " + node.Id, e);
664664
continue;
665665
}
666+
if (panel == null) {
667+
LoggingService.LogWarning ("Error panel == null: " + node.Id);
668+
continue;
669+
}
666670
pi = new PanelInstance ();
667671
pi.Panel = panel;
668672
pi.Node = node;

0 commit comments

Comments
 (0)