Search Issue Tracker
Fixed in 2020.2.X
Fixed in 2018.4.X, 2019.3.X, 2020.1.X
Votes
0
Found in
2017.4
2018.1
2018.3
2018.4
2019.1
2019.2
2019.3
2020.1
2020.2
2020.2.0a7
Issue ID
1237306
Regression
No
[Shuirken] NullReferenceException thrown on applying Curve Presets in the Curve Editor window to curve property of the object
Selecting default presets in the "Curve Editor" window for "Direction" property of the "Particle System Force Field" object causes the editor to throw NullReferenceException, refer attached video.
Steps to repro:
1. Create a new project
2. Hierarchy > Create > Effects > Particle System Force Field
3. Inspector > Particle System Force Field > Direction > X
4. Select "Curve" from the dropdown list
5. Open Curve Editor > Click on the Settings icon
6. Select Curve Presets
Actual Result:
NullReferenceException thrown when pre-made presets are applied to the object from Curve Editor window
Expected Result:
Pre-made Presets are applied without throwing any error in the console
Reproducible on:
2020.2.0a7, 2020.1.0b5, 2019.3.9f1, 2019.2.13f1, 2019.1.11f1, 2018.4.14f1, 2018.3.0f2, 2018.1.0f2, 2017.4.27f1
Environment:
Windows 10 & macOS 10.14
Stack trace:
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.MinMaxCurveEditorWindow+<>c__DisplayClass30_0.<InitCurvePresets>b__0 (UnityEditor.DoubleCurve presetCurve) (at <b0707acaff7743ddbcba0f9c9b5c49cc>:0)
UnityEditor.DoubleCurvePresetsContentsForPopupWindow.ItemClickedCallback (System.Int32 clickCount, System.Object presetObject) (at <b0707acaff7743ddbcba0f9c9b5c49cc>:0)
UnityEditor.PresetLibraryEditor`1[T].ListArea (UnityEngine.Rect rect, UnityEditor.PresetLibrary lib, System.Object newPresetObject) (at <b0707acaff7743ddbcba0f9c9b5c49cc>:0)
UnityEditor.PresetLibraryEditor`1[T].OnGUI (UnityEngine.Rect rect, System.Object presetObject) (at <b0707acaff7743ddbcba0f9c9b5c49cc>:0)
UnityEditor.DoubleCurvePresetsContentsForPopupWindow.OnGUI (UnityEngine.Rect rect) (at <b0707acaff7743ddbcba0f9c9b5c49cc>:0)
UnityEditor.PopupWindow.OnGUI () (at <b0707acaff7743ddbcba0f9c9b5c49cc>:0)
UnityEditor.HostView.OldOnGUI () (at <b0707acaff7743ddbcba0f9c9b5c49cc>:0)
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 <bbbb88ae80ab4089bd1e62021a527f21>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <bbbb88ae80ab4089bd1e62021a527f21>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <bbbb88ae80ab4089bd1e62021a527f21>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Boolean canAffectFocus) (at <bbbb88ae80ab4089bd1e62021a527f21>:0)
UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUIRaw (UnityEngine.UIElements.EventBase evt, System.Boolean canAffectFocus, System.Boolean verifyBounds) (at <bbbb88ae80ab4089bd1e62021a527f21>:0)
UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUI (UnityEngine.UIElements.EventBase evt, System.Boolean canAffectFocus, System.Boolean verifyBounds) (at <bbbb88ae80ab4089bd1e62021a527f21>:0)
UnityEngine.UIElements.IMGUIContainer.HandleEvent (UnityEngine.UIElements.EventBase evt) (at <bbbb88ae80ab4089bd1e62021a527f21>:0)
UnityEngine.UIElements.EventDispatchUtilities.PropagateEvent (UnityEngine.UIElements.EventBase evt) (at <bbbb88ae80ab4089bd1e62021a527f21>:0)
UnityEngine.UIElements.MouseEventDispatchingStrategy.SendEventToRegularTarget (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel) (at <bbbb88ae80ab4089bd1e62021a527f21>:0)
UnityEngine.UIElements.MouseEventDispatchingStrategy.SendEventToTarget (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel) (at <bbbb88ae80ab4089bd1e62021a527f21>:0)
UnityEngine.UIElements.MouseEventDispatchingStrategy.DispatchEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel iPanel) (at <bbbb88ae80ab4089bd1e62021a527f21>:0)
UnityEngine.UIElements.EventDispatcher.ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, System.Boolean imguiEventIsInitiallyUsed) (at <bbbb88ae80ab4089bd1e62021a527f21>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <bbbb88ae80ab4089bd1e62021a527f21>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEventQueue () (at <bbbb88ae80ab4089bd1e62021a527f21>:0)
UnityEngine.UIElements.EventDispatcher.OpenGate () (at <bbbb88ae80ab4089bd1e62021a527f21>:0)
UnityEngine.UIElements.EventDispatcherGate.Dispose () (at <bbbb88ae80ab4089bd1e62021a527f21>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <bbbb88ae80ab4089bd1e62021a527f21>:0)
UnityEngine.UIElements.EventDispatcher.Dispatch (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, UnityEngine.UIElements.DispatchMode dispatchMode) (at <bbbb88ae80ab4089bd1e62021a527f21>:0)
UnityEngine.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.UIElements.EventBase e, UnityEngine.UIElements.DispatchMode dispatchMode) (at <bbbb88ae80ab4089bd1e62021a527f21>:0)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <bbbb88ae80ab4089bd1e62021a527f21>:0)
UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at <bbbb88ae80ab4089bd1e62021a527f21>:0)
UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <bbbb88ae80ab4089bd1e62021a527f21>:0)
UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at <bbbb88ae80ab4089bd1e62021a527f21>:0)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at <7e072e4699014d9089b4f15a2244620f>:0)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [iOS] WebCamDevice.availableResolutions returns a single resolution with width and height both 0 on some iOS devices
- Editor freezes when selecting a GameObject in Play Mode with a script containing a public byte array
- Saving moves Toggle Button Group buttons to the wrong place in hierarchy
- [iOS] Visual artifacts are visible when the camera's feed is rendered to a texture
- Error "cannot map expression to ps_4_0 instruction set" in Shader Graph preview when using the GATHER_RED_TEXTURE2D macro in custom hlsl function
Add comment