Hi, have been getting a editor error when changing the atlas of a sprite (v3.0.3):
NullReferenceException: Object reference not set to an instance of an object
NGUIEditorTools.DrawSprite (UnityEngine.Texture2D tex, Rect drawRect, .UISpriteData sprite, Color color, UnityEngine.Material mat) (at Assets/NGUI/Scripts/Editor/NGUIEditorTools.cs:703)
NGUIEditorTools.DrawSprite (UnityEngine.Texture2D tex, Rect rect, .UISpriteData sprite, Color color) (at Assets/NGUI/Scripts/Editor/NGUIEditorTools.cs:692)
UISpriteInspector.OnPreviewGUI (Rect rect, UnityEngine.GUIStyle background) (at Assets/NGUI/Scripts/Editor/UISpriteInspector.cs:117)
UnityEditor.Editor.OnInteractivePreviewGUI (Rect r, UnityEngine.GUIStyle background) (at C:/BuildAgent/work/cac08d8a5e25d4cb/Editor/MonoGenerated/Editor/EditorBindings.cs:268)
UnityEditor.Editor.DrawPreview (Rect previewPosition) (at C:/BuildAgent/work/cac08d8a5e25d4cb/Editor/Mono/Inspector/Editor.cs:303)
UnityEditor.InspectorWindow.DrawPreviewAndLabels () (at C:/BuildAgent/work/cac08d8a5e25d4cb/Editor/Mono/Inspector/InspectorWindow.cs:521)
UnityEditor.InspectorWindow.OnGUI () (at C:/BuildAgent/work/cac08d8a5e25d4cb/Editor/Mono/Inspector/InspectorWindow.cs:282)
Checking for a null UISpriteData in UISpriteInspector.OnPreviewGUI() is a work around that allows us then to modify the sprite name to something it can find in the new atlas.
ta