diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-05-02 17:57:22 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-05-03 09:17:09 +0200 |
commit | 8662a96c90b56f61bf24380094f217e7170f54be (patch) | |
tree | 8f7655d59e15cc2f7a8f98819408dd50698f7bc9 /vcl/jsdialog | |
parent | 3cc6384e41819eb8a5182a9ab7fd8f74d3cea9e5 (diff) |
WaE: C6011 Dereferencing NULL pointer warnings
Change-Id: I9b2b86c26e08221c57735c6eda88727aa8a46b5f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167021
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
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); |