Search Issue Tracker




Found in


Issue ID




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)

  1. Fattie

    Sep 02, 2016 05:05

    Still happening in 5.4 patch5. What a joke.

  2. rammpy

    Jul 26, 2016 05:19

    where is sprite editor and how to close it

  3. 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.

  4. stulleman

    Jul 13, 2015 19:47

    Closing Sprite Editor fixes the issue.

  5. _Adriaan

    Jul 10, 2015 09:47

    I can confirm: closing the (possibly docked) sprite editor window will solve this problem!

  6. alteredgene-london

    Jul 06, 2015 13:36

    Had this same exact issue just now, just close sprite editor tab thats what fixed this issue

  7. 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.

  8. juliaorven

    Jun 23, 2015 14:30

    Same thing. Closing Sprite Editor helped.

  9. CoderPro

    Jun 23, 2015 06:36

    Just close Sprite Editor. But this is important bug, Unity must fix this bug.

  10. 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)

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.