NullReferenceException whenever XAML is reloaded
Posted: 26 Apr 2021, 19:23
I have a minor issue in Unity.
Whenever I make changes to a XAML and then go back to the Unity Editor and it reloads it, I can the "save asset" dialog and when I confirm I get this in the console:
This happens every single time a XAML is reloaded
Edit: Just to be clear this doesn't cause any further issues than the logged exception. The xaml is reloaded perfectly fine. It seems Noesis is trying to open some sort of editor window and not finding it?
Whenever I make changes to a XAML and then go back to the Unity Editor and it reloads it, I can the "save asset" dialog and when I confirm I get this in the console:
Code: Select all
[Exception] NullReferenceException: Object reference not set to an instance of an object
ContainerWindow.NotDockedWindowID() at <d3ff43e972b043d1b3f49905ec5da738>:0
ContainerWindow.Load() at <d3ff43e972b043d1b3f49905ec5da738>:0
ContainerWindow.Show() at <d3ff43e972b043d1b3f49905ec5da738>:0
EditorWindow.ShowWithMode() at <d3ff43e972b043d1b3f49905ec5da738>:0
EditorWindow.ShowModal() at <d3ff43e972b043d1b3f49905ec5da738>:0
AssetSaveDialog.ShowWindow() at <d3ff43e972b043d1b3f49905ec5da738>:0
AssetModificationProcessorInternal.OnWillSaveAssets() at <d3ff43e972b043d1b3f49905ec5da738>:0
NoesisPostprocessor.ImportXaml() at /NoesisGUI/Plugins/Editor/NoesisPostprocessor.cs:369
368: EditorUtility.SetDirty(xaml);
-->369: AssetDatabase.SaveAssets();
370: Log("? ImportXaml");
371: }
NoesisPostprocessor.ImportXaml() at /NoesisGUI/Plugins/Editor/NoesisPostprocessor.cs:316
314: {
315: bool changed;
-->316: return ImportXaml(filename, reimport, reload, out changed);
317: }
NoesisPostprocessor.ImportAssets() at /NoesisGUI/Plugins/Editor/NoesisPostprocessor.cs:79
77: else if (IsXaml(asset))
78: {
-->79: ImportXaml(asset, true, reload);
80: }
81: }
<>c__DisplayClass4_1.<OnPostprocessAllAssets>b__0() at /NoesisGUI/Plugins/Editor/NoesisPostprocessor.cs:111
110: string[] assets = importedAssets.Concat(movedAssets).ToArray();
-->111: ImportAssets(assets, NoesisSettings.Get().hotReloading, (progress, asset) =>
112: EditorUtility.DisplayProgressBar("Import XAMLs", asset, progress));
113: EditorUtility.ClearProgressBar();
Edit: Just to be clear this doesn't cause any further issues than the logged exception. The xaml is reloaded perfectly fine. It seems Noesis is trying to open some sort of editor window and not finding it?