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
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
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.