File tree 1 file changed +2
-2
lines changed
packages/desktop_multi_window/windows
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ void DesktopMultiWindowPlugin::HandleMethodCall(
52
52
std::unique_ptr<flutter::MethodResult<flutter::EncodableValue>> result) {
53
53
if (method_call.method_name () == " createWindow" ) {
54
54
auto args = std::get_if<std::string>(method_call.arguments ());
55
- auto window_id = MultiWindowManager::Instance ()->Create (*args);
55
+ auto window_id = MultiWindowManager::Instance ()->Create (args != nullptr ? *args : " " );
56
56
result->Success (flutter::EncodableValue (window_id));
57
57
return ;
58
58
} else if (method_call.method_name () == " show" ) {
@@ -118,4 +118,4 @@ void InternalMultiWindowPluginRegisterWithRegistrar(FlutterDesktopPluginRegistra
118
118
DesktopMultiWindowPlugin::RegisterWithRegistrar (
119
119
flutter::PluginRegistrarManager::GetInstance ()
120
120
->GetRegistrar <flutter::PluginRegistrarWindows>(registrar));
121
- }
121
+ }
You can’t perform that action at this time.
0 commit comments