Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

NullReferenceException error from F8Framework.F8ExcelTool.Editor.ExcelDataTool.GetExcelData #3

Open
uiosun opened this issue Dec 14, 2023 · 1 comment

Comments

@uiosun
Copy link

uiosun commented Dec 14, 2023

发生了什么:当我使用这样的异常 Excel 进行导入时,出现了报错并且 Unity Editor 的导入窗口,进入 Hold on 持续挂起状态。

期望:挂起状态应当结束。

NullReferenceException: Object reference not set to an instance of an object
F8Framework.F8ExcelTool.Editor.ExcelDataTool.GetExcelData (System.String inputPath) (at ./Library/PackageCache/com.tippinggame.f8exceltool@d4a8f7e597/Editor/ExcelConfig/ExcelDataTool.cs:219)
F8Framework.F8ExcelTool.Editor.ExcelDataTool.LoadAllExcelData () (at ./Library/PackageCache/com.tippinggame.f8exceltool@d4a8f7e597/Editor/ExcelConfig/ExcelDataTool.cs:84)
UnityEditor.EditorApplication:Internal_CallGlobalEventHandler()

config_error_idle.xlsx

image

@TippingGame
Copy link
Owner

增加了错误判断,报错定位到表格->行数>
if (types == null || names == null || datas == null){ ProgressBar.HideBarWithFailInfo("\n数据错误!["+ className +"]配置表!第" + index + "行\n" + inputPath); throw new Exception("数据错误!["+ className +"]配置表!第" + index + "行" + inputPath); }

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants