diff options
-rw-r--r-- | main/src/addins/MacPlatform/Dialogs/MacAddFileDialogHandler.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/main/src/addins/MacPlatform/Dialogs/MacAddFileDialogHandler.cs b/main/src/addins/MacPlatform/Dialogs/MacAddFileDialogHandler.cs index 87c62c87c9..fb0e5fe557 100644 --- a/main/src/addins/MacPlatform/Dialogs/MacAddFileDialogHandler.cs +++ b/main/src/addins/MacPlatform/Dialogs/MacAddFileDialogHandler.cs @@ -60,7 +60,8 @@ namespace MonoDevelop.MacIntegration }; box.Layout (); panel.AccessoryView = box.View; - box.Layout (box.View.Superview.Frame.Size); + if (box.View.Superview != null) + box.Layout (box.View.Superview.Frame.Size); } else { dropdownBox.Layout (); panel.AccessoryView = dropdownBox.View; |