Search Issue Tracker
Fixed
Votes
39
Found in
5.1.0f3
Issue ID
705249
Regression
Yes
NullReferenceException in Editor: Texture Import Changes cannot be applied
How to reproduce:
1. Open attached project
2. Modify the import settings of CloudParticle.png
- Try changing the format, for example
3. Apply new settings
- Notice how it throws an error:
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.SpriteEditorWindow.ApplyCacheSettingsToInspector (UnityEditor.SerializedObject so)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- GPU utilization increases by 20% on Meta Quest headsets when Render Graph is enabled on 6000.0.16f1 and higher
- Value on Slider (Int) control in UI Builder displays as default when saving UI Document
- Color mismatch in UI Builders Library panel when the Editors theme is set to Light Mode
- [Android ] "AndroidJNI.ToBooleanArray" returns a random non-zero value instead of "IntPtr.Zero" when the method argument is null
- Non-HDR color picker opens when selecting material color with HDR enabled
Fattie
Sep 02, 2016 05:05
Still happening in 5.4 patch5. What a joke.
rammpy
Jul 26, 2016 05:19
where is sprite editor and how to close it
kosikfl
Aug 12, 2015 06:55
Yes, the cloud was hacked but they encrypted the software. I've reached out to the Government, Google and Microsoft. They wanted money and the longer time the more money they wanted. The Government didn't respond and I haven't heard back from microsoft or Google yet either.
I was able to pull some data so but not much. I'm not a hacker and it takes a hacker to fight a hacker.
stulleman
Jul 13, 2015 19:47
Closing Sprite Editor fixes the issue.
_Adriaan
Jul 10, 2015 09:47
I can confirm: closing the (possibly docked) sprite editor window will solve this problem!
alteredgene-london
Jul 06, 2015 13:36
Had this same exact issue just now, just close sprite editor tab thats what fixed this issue
Guppie1337
Jun 24, 2015 19:39
I had the same bug and submitted a report for it early on. The solution I use is just tab off and on the editor tab and apply when it is open. Easy fix but very annoying.
juliaorven
Jun 23, 2015 14:30
Same thing. Closing Sprite Editor helped.
CoderPro
Jun 23, 2015 06:36
Just close Sprite Editor. But this is important bug, Unity must fix this bug.
Ashalah
Jun 20, 2015 22:27
I can confirm this happens on 5.1.1f1 when the Sprite Editor window is open. I can't save any changes to sprites in the Inspector.
I closed the Sprite Editor window, opened it again, and now it doesn't happen anymore. When I restart Unity, and the Sprite Editor window was already opened and docked somewhere, it happens again. Full error:
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.SpriteEditorWindow.ApplyCacheSettingsToInspector (UnityEditor.SerializedObject so) (at C:/buildslave/unity/build/Editor/Mono/SpriteEditor/SpriteEditorWindow.cs:143)
UnityEditor.SpriteEditorWindow.TextureImporterApply (UnityEditor.SerializedObject so) (at C:/buildslave/unity/build/Editor/Mono/SpriteEditor/SpriteEditorWindow.cs:138)
UnityEditor.TextureImporterInspector.Apply () (at C:/buildslave/unity/build/Editor/Mono/ImportSettings/TextureImporterInspector.cs:2201)
UnityEditor.AssetImporterInspector.ApplyAndImport () (at C:/buildslave/unity/build/Editor/Mono/ImportSettings/AssetImporterInspector.cs:148)
UnityEditor.AssetImporterInspector.ApplyButton (System.String buttonText) (at C:/buildslave/unity/build/Editor/Mono/ImportSettings/AssetImporterInspector.cs:199)
UnityEditor.AssetImporterInspector.ApplyButton () (at C:/buildslave/unity/build/Editor/Mono/ImportSettings/AssetImporterInspector.cs:192)
UnityEditor.AssetImporterInspector.ApplyRevertGUIButtons () (at C:/buildslave/unity/build/Editor/Mono/ImportSettings/AssetImporterInspector.cs:210)
UnityEditor.AssetImporterInspector.ApplyRevertGUI () (at C:/buildslave/unity/build/Editor/Mono/ImportSettings/AssetImporterInspector.cs:226)
UnityEditor.TextureImporterInspector.OnInspectorGUI () (at C:/buildslave/unity/build/Editor/Mono/ImportSettings/TextureImporterInspector.cs:1329)
UnityEditor.InspectorWindow.DrawEditor (UnityEditor.Editor editor, Int32 editorIndex, Boolean forceDirty, System.Boolean& showImportedObjectBarNext, UnityEngine.Rect& importedObjectBarRect, Boolean eyeDropperDirty) (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:1162)
UnityEditor.DockArea:OnGUI()