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
- The tag adder functionality does not work if a space is entered instead of a name
- Errors thrown in the Console when configuring In-App Purchases package
- Longer Scaler Profile names go out of the"Scaler Profilers" section
- AI Navigation window UI elements overlap when the AI Navigation window is docked and resized
- Editor freezes after some time when using NavMeshQuery::Raycast
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.