Search Issue Tracker




Found in




Issue ID




NullReferenceException on DrawPresetButton error is thrown when selecting Naninovel menu items in Project settings

Customer QA Onboarding


Reproduction steps:
1. Open user attached project ""
2. Select Main Menu -> Edit -> Project settings
3. In the Project settings menu navigate to the Naninovel drop-down menu
4. Press any menu item in the Naninovel menu

Expected result: Naninovel menu item opens up with no errors in the Console
Actual result: Naninovel menu item opens up with errors in the Console

Reproducible with: 2021.2.0a19, 2021.2.0b9, 2022.1.0a1
Not reproducible with: 2020.3.17f1, 2021.1.18f1, 2022.1.0a2, 2022.1.0a5
Could not test with: 2019.4.29f1 (not available for this version), 2021.2.0a1 - 2021.2.0a18 (Naninovel does not load due to errors in the Console)

Console errors:
-Error: NullReferenceException: Object reference not set to an instance of an object
UnityEditor.Presets.PresetSelector.DrawPresetButton (UnityEngine.Rect rectangle, UnityEngine.Object[] targets) (at /Users/bokken/buildslave/unity/build/Modules/PresetsEditor/PresetSelector.cs:102)
Naninovel.ConfigurationSettings.OnTitleBarGUI () (at Assets/Naninovel/Editor/Editors/Settings/ConfigurationSettings.cs:80)
UnityEditor.SettingsWindow.DrawTitleBar () (at /Users/bokken/buildslave/unity/build/Editor/Mono/Settings/SettingsWindow.cs:442)
UnityEditor.SettingsWindow.DrawSettingsPanel () (at /Users/bokken/buildslave/unity/build/Editor/Mono/Settings/SettingsWindow.cs:403)
UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at /Users/bokken/buildslave/unity/build/ModuleOverrides/com.unity.ui/Core/IMGUIContainer.cs:351)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&) (at /Users/bokken/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:189)

  1. Response avatar

    Resolution Note:

    Fixed in 2022.1.0a2

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.