Search Issue Tracker

Fixed in Unity 2018.3

Votes

0

Found in

2018.2.0b1

Issue ID

1033273

Regression

Yes

[Editor] NullReferenceException on opening import settings of preset

Editor - Other

-

-

Priority: 2Necessary for shipping a final release

-

Severity: 3Secondary functionality broken

NullReferenceException is thrown on console While opening import settings of preset

Steps to Reproduce:
1. Create a new project.
2. Create a preset of importer type.
3. Select open from "Import Settings" of preset from inspector tab.

Actual Result:
NullReferenceException is thrown on console

Expected Result:
Import Settings should open of the particular preset.

Environment:
Windows 10 and Mac 10.13

Occurring with:
2018.2.0b3, 2018.2.0b1, 2018.1.0f2, 2018.1.0b13, 2018.1.0b1, 2018.1.0a5

Working Fine on:
2018.1.0a4, 2018.1.0a1

Stack trace:
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.AssetDatabase.OpenAsset (UnityEngine.Object[] objects) (at C:/buildslave/unity/build/artifacts/generated/bindings_old/common/Editor/AssetDatabaseBindings.gen.cs:334)
UnityEditor.Editor.OnHeaderControlsGUI () (at C:/buildslave/unity/build/Editor/Mono/Inspector/Editor.cs:715)
UnityEditor.Editor.DrawHeaderGUI (UnityEditor.Editor editor, System.String header, Single leftMargin) (at C:/buildslave/unity/build/Editor/Mono/Inspector/Editor.cs:805)
UnityEditor.Editor.DrawHeaderGUI (UnityEditor.Editor editor, System.String header) (at C:/buildslave/unity/build/Editor/Mono/Inspector/Editor.cs:792)
UnityEditor.Editor.OnHeaderGUI () (at C:/buildslave/unity/build/Editor/Mono/Inspector/Editor.cs:685)
UnityEditor.Editor.DrawHeaderFromInsideHierarchy () (at C:/buildslave/unity/build/Editor/Mono/Inspector/Editor.cs:786)
UnityEditor.Editor.DrawHeader () (at C:/buildslave/unity/build/Editor/Mono/Inspector/Editor.cs:656)
UnityEditor.Presets.PresetEditor.DrawInternalInspector () (at C:/buildslave/unity/build/Modules/PresetsEditor/PresetEditor.cs:207)
UnityEditor.Presets.PresetEditor.DrawPresetData () (at C:/buildslave/unity/build/Modules/PresetsEditor/PresetEditor.cs:92)
UnityEditor.Presets.PresetEditor.OnInspectorGUI () (at C:/buildslave/unity/build/Modules/PresetsEditor/PresetEditor.cs:80)
UnityEditor.InspectorWindow.DrawEditor (UnityEditor.Editor[] editors, Int32 editorIndex, Boolean rebuildOptimizedGUIBlock, System.Boolean& showImportedObjectBarNext, UnityEngine.Rect& importedObjectBarRect) (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:1374)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

All about bugs

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