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()
Comments (1)
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
- Color Picker preview rectangle doesn’t update when adjusting colors for Specular color field for Terrain Layer
- Character Controller fall through the ground when touches 100 colliders
- Paragraph Spacing and the 'line-height' tag are not working when the Advanced Text Generator is enabled
- Non-standard error icon is used in Shader Graph
- GameObject drops to the last position in the Hierarchy when a RectTransform Component is added
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.