We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 332e79d commit da8e60dCopy full SHA for da8e60d
Editor/Util/PersistentStorage.cs
@@ -166,9 +166,12 @@ private static void InvokeEventsWhenEditorIsReady()
166
}
167
finally
168
{
169
- for (int i = Instance._afterReloadEvent.PersistentListeners.Count - 1; i >= 0; i--)
+ if (Instance._afterReloadEvent.PersistentListeners != null)
170
171
- Instance._afterReloadEvent.RemovePersistentListenerAt(i);
+ for (int i = Instance._afterReloadEvent.PersistentListeners.Count - 1; i >= 0; i--)
172
+ {
173
+ Instance._afterReloadEvent.RemovePersistentListenerAt(i);
174
+ }
175
176
177
0 commit comments