Search Issue Tracker
Fixed
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
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
- Inconsistent behaviour when interacting with different dropdown types with pointer events on parent Visual Element
- Hidden GameObjects won't re-enable when they have call "DontDestroyOnLoad" function
- Overlay Canvas are rendered on each split-screen camera when HDR is enabled
- [Android] The Player loses focus when using UnityEngine.Handheld.StartActivityIndicator() with Facebook SDK
- Build fails with "Building Library/Bee/artifacts/MacStandalonePlayerBuildProgram/gahcy/hj9mx3z/951.0 failed with output:..." errors when Scripting Backend is set to IL2CPP
Resolution Note:
Fixed by https://issuetracker.unity3d.com/product/unity/issues/guid/UUM-37282