Search Issue Tracker
Not Reproducible
Votes
1
Found in
5.0.0b20
Issue ID
663207
Regression
No
Dragging an input field from game view to console throws exceptions
To reproduce:
1. Import Unity UI examples or Open attached project
2. Open scene Controls
3. Enter play mode
4. Click and drag the big input field. Drag it into the console
5. Notice the exceptions being thrown:
NullReferenceException: Object reference not set to an instance of an object
UnityEngine.TextGenerator.get_characterCountVisible () (at C:/buildslave/unity/build/artifacts/generated/WP8/modules/TextRenderingBindings.gen.cs:678)
UnityEngine.UI.InputField.LineDownCharacterPosition (Int32 originalPos, Boolean goToLastChar) (at C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/UI/Core/InputField.cs:1118)
UnityEngine.UI.InputField.MoveDown (Boolean shift, Boolean goToLastChar) (at C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/UI/Core/InputField.cs:1153)
UnityEngine.UI.InputField <MouseDragOutsideRect>c__Iterator3.MoveNext () (at C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/UI/Core/InputField.cs:706)
UnityEngine.EventSystems.EventSystem:Update()
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [Android] The Player freezes when disabling Bluetooth while connected to the headphones
- Addressable bundles are not retrieved from the cache when a WebGL Player is refreshed
- Sprites are incorrectly occluded by Sprite Physics Shape culling when behind in sorting order
- CPU usage is increased when the Editor is idle with the ProBuilder Package installed
- Unstable lighting when additional light sources are added in Shader Graph nodes
tattz
Jan 29, 2015 08:53
Nullref only happens if the Input Field is empty when starting Play Mode. And this problem only concerns text fields with multiple lines (New Lines). I got around this problem with having some text in the field at the start so even if it was empty later, the nullref didn't occur.