Skip to content

Commit

Permalink
fixes crash when game is packaged as FindPlugin would return nullptr
Browse files Browse the repository at this point in the history
  • Loading branch information
tn-immutable committed Nov 15, 2023
1 parent cedf907 commit a9bdb6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Immutable/Private/ImmutableModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ void FImmutableModule::StartupModule() {
// timing is specified in the .uplugin file per-module

#if USING_BLUI_CEF
if (IPluginManager::Get().FindPlugin("WebBrowserWidget")->IsEnabled()) {
if (IPluginManager::Get().FindPlugin("WebBrowserWidget") != nullptr && IPluginManager::Get().FindPlugin("WebBrowserWidget")->IsEnabled()) {
IMTBL_ERR("Cannot enable both BLUI and WebBrowserWidget plugin at the same "
"time as it crashes. In Immutable.uplugin file, "
"'Plugins->WebBrowserWidget->Enabled' to 'false' and ensure the "
Expand Down

0 comments on commit a9bdb6a

Please sign in to comment.