diff options
Diffstat (limited to 'vcl/jsdialog')
-rw-r--r-- | vcl/jsdialog/jsdialogbuilder.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/jsdialog/jsdialogbuilder.cxx b/vcl/jsdialog/jsdialogbuilder.cxx index cb9378f471f8..d4767a4f3311 100644 --- a/vcl/jsdialog/jsdialogbuilder.cxx +++ b/vcl/jsdialog/jsdialogbuilder.cxx @@ -1036,7 +1036,7 @@ std::unique_ptr<weld::Notebook> JSInstanceBuilder::weld_notebook(const OUString& if (pNotebook && pNotebook->GetType() == WindowType::TABCONTROL) pWeldWidget = std::make_unique<JSNotebook>(this, static_cast<TabControl*>(pNotebook), this, false); - else if (pNotebook->GetType() == WindowType::VERTICALTABCONTROL) + else if (pNotebook && pNotebook->GetType() == WindowType::VERTICALTABCONTROL) pWeldWidget = std::make_unique<JSVerticalNotebook>( this, static_cast<VerticalTabControl*>(pNotebook), this, false); |