diff --git a/Assets/Scripts/Studio/UI/Panel/Panel_NewProjectInfo.cs b/Assets/Scripts/Studio/UI/Panel/Panel_NewProjectInfo.cs index 83dbf6a2..c9748abd 100644 --- a/Assets/Scripts/Studio/UI/Panel/Panel_NewProjectInfo.cs +++ b/Assets/Scripts/Studio/UI/Panel/Panel_NewProjectInfo.cs @@ -37,6 +37,9 @@ namespace Studio.UI { var paths = StandaloneFileBrowser.OpenFolderPanel("Select Folder", "", false); + if (paths == null) + return; + if (paths.Count > 0 && !string.IsNullOrEmpty(paths[0].Name)) { var path = Path.GetDirectoryName(paths[0].Name); diff --git a/Assets/Scripts/Studio/UI/Panel/Panel_TopMenuNewProjectInfo.cs b/Assets/Scripts/Studio/UI/Panel/Panel_TopMenuNewProjectInfo.cs index 3cf9d981..ea32f223 100644 --- a/Assets/Scripts/Studio/UI/Panel/Panel_TopMenuNewProjectInfo.cs +++ b/Assets/Scripts/Studio/UI/Panel/Panel_TopMenuNewProjectInfo.cs @@ -32,6 +32,9 @@ namespace Studio.UI { var paths = StandaloneFileBrowser.OpenFolderPanel("Select Folder", "", false); + if (paths == null) + return; + if (paths.Count > 0 && !string.IsNullOrEmpty(paths[0].Name)) { var path = Path.GetDirectoryName(paths[0].Name);