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)
Comments (13)
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
- Crash on GUIManager::DoGUIEvent when focusing on the Game view window on a specific project
- Asset creation in the Project Browser is not always undone/inconsistent when the undo shortcut is pressed right after creating an asset
- JobTempAlloc memory leak warning is thrown when the Player is shut down
- Graphics State Collection warm-up does not work when using with Addressables Shaders
- "Baked Shadow Radius" field is visible but inactive when when the Shadow Type is set to "Hard Shadows" under the Light Component
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
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()
WillNode
Jun 20, 2015 15:17
Hi, recently I've just found what makes this problem.
Simply close Sprite Editor, sometimes it's very buggy.