Search Issue Tracker
Fixed in 2021.3.0f1
Fixed in 2023.3.X
Votes
1
Found in
2021.3.31f1
2022.3.11f1
2023.1.16f1
2023.2.0b13
2023.3.0a9
Issue ID
UUM-54207
Regression
Yes
Error "NullReferenceException: Object reference not set to an instance of an object" is thrown then "BaseEventData" is null in the "OnSubmit" method in the Input Field
How to reproduce:
1. Open the "IN_53037" project
2. In the Build Settings "Run Device" dropdown, select the desired device
3. Press Build And Run
4. In the Player press on the Input fields
5. On the keyboard press "OK" or the default confirm button on the bottom right of the keyboard
6. Observe the "Android Logcat" window
Expected result: no error regarding the Input Field
Actual result: error "NullReferenceException: Object reference not set to an instance of an object" is thrown
Reproducible with: 3.2.0-pre.5 (2021.3.31f1, 2022.3.11f1, 2023.1.16f1) (tested with TextMeshPro), 2.0.0 (2023.2.0b13, 2023.3.0a9) (TMP package merged with uGUI so tested on uGUI package)
Not reproducible with: 3.2.0-pre.4 (2021.3.31f1, 2022.3.11f1, 2023.1.16f1) (tested with TextMeshPro package)
Couldn't test with these package versions: 3.2.0-pre.6 (shader error), 4.0.0-pre.1, 4.0.0-pre.2 (Input Fields are not responsive)
Testing environment: Windows 10 Pro
Not reproducible on: No other environment tested
Reproducible on these devices:
VLNQA00120, Google Pixel 2 (Pixel 2), Android 8.1.0, CPU: Snapdragon 835 MSM8998, GPU: Adreno (TM) 540
VLNQA00267, Samsung Galaxy S10+ (SM-G975F), Android 12, CPU: Exynos 9 (9820), GPU: Mali-G76
VLNQA00178, Xiaomi Redmi Note 4 (Redmi Note 4), Android 6.0, CPU: MediaTek Helio X20 MT6797M, GPU: Mali-T880
VLNQA00494 - iPhone 14 Pro Max, 16.3.1 iOS
VLNQA00358 - iPhone 12, 14.1 iOS
VLNQA00392 - iPad (9th generation), 15.0 iOS
VLNQA00310 - iPad Pro 12.9", 13.4.1 iOS
Full error:
NullReferenceException: Object reference not set to an instance of an object at TMPro.TMP_InputField.OnSubmit (UnityEngine.EventSystems.BaseEventData eventData) [0x0003e] in C:\Users\danielius.pliuskys\Desktop\tmpissue\InputException\Library\PackageCache\com.unity.textmeshpro@3.2.0-pre.5\Scripts\Runtime\TMP_InputField.cs:4438 at TMPro.TMP_InputField.LateUpdate () [0x002c9] in C:\Users\danielius.pliuskys\Desktop\tmpissue\InputException\Library\PackageCache\com.unity.textmeshpro@3.2.0-pre.5\Scripts\Runtime\TMP_InputField.cs:1747
Note: regression happened in the package (TextMeshPro) 3.2.0-pre.4 so I couldn’t add it to the Target Project Regressed field
Comments (1)
-
TG-jkhoo
Nov 29, 2023 17:57
What's the issue tracker link for the duplicate issue?
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
- [Tile Palette] Sprites not rendering when brush tool "Paint a filled box with active brush" is used for the first time
- Adding available Nodes with longer names in Fragment Context window overflow Fragment Context window in Shader Graph
- "Layer Palette Profile" Asset is automatically applied to the second Terrain but doesn't load any layers
- "Terrain Tools" shortcut conflicts with the Overlays shortcut by default
- Longer Shader Graph Property Reference names breaks VFX Graph Output Particle Node
Resolution Note (fix version 2021.3.0f1):
Fixed by https://issuetracker.unity3d.com/product/unity/issues/guid/UUM-37282
Resolution Note (fix version 2023.3):
Fixed by https://issuetracker.unity3d.com/product/unity/issues/guid/UUM-37282