You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 13, 2021. It is now read-only.
NullReferenceException: Object reference not set to an instance of an object
...(略)
Tangzx.ABSystem.AssetBundleBuildPanel.OnListElementGUI (Rect rect, Int32 index, Boolean isactive, Boolean isfocused) (at Assets/ABSystem/Editor/AssetBundleBuildPanel.cs:79)
...(略)
今天爬文爬到這工具, 不小心手殘就按出問題~
觸發方式: 在 AssetBundleBuildPanel UI 的清單項目上按下 'Select', 接著選擇 '取消' 關閉視窗, 接著 UI 就會不斷刷出這個 Exception
原因應該是
filter.path = GUI.TextField(r, filter.path);
第一個參數不能為 null 造成的.
我修正的方式是把84行附近的:
if (GUI.Button(r, "Select")) { filter.path = SelectFolder(); }
增加檢查來避免給 null.
if (GUI.Button(r, "Select")) { var path = SelectFolder(); if (path != null) filter.path = path; }
The text was updated successfully, but these errors were encountered: