File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/desktop_multi_window/windows Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ void DesktopMultiWindowPlugin::HandleMethodCall(
5252 std::unique_ptr<flutter::MethodResult<flutter::EncodableValue>> result) {
5353 if (method_call.method_name () == " createWindow" ) {
5454 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 : " " );
5656 result->Success (flutter::EncodableValue (window_id));
5757 return ;
5858 } else if (method_call.method_name () == " show" ) {
@@ -118,4 +118,4 @@ void InternalMultiWindowPluginRegisterWithRegistrar(FlutterDesktopPluginRegistra
118118 DesktopMultiWindowPlugin::RegisterWithRegistrar (
119119 flutter::PluginRegistrarManager::GetInstance ()
120120 ->GetRegistrar <flutter::PluginRegistrarWindows>(registrar));
121- }
121+ }
You can’t perform that action at this time.
0 commit comments