Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on March 30, 2023, between 5 am & 1 pm EST, in the Performance Profiling Dev Blitz Day 2023 - Q&A forum and Discord where you can connect with our teams behind the Memory and CPU Profilers.
    Dismiss Notice

TextMesh Pro NullReferenceException: Object reference not set to an instance of an object. TMPro.TMP_InputField.S

Discussion in 'UGUI & TextMesh Pro' started by FernandoHC, Feb 13, 2020.

  1. FernandoHC


    Feb 6, 2018
    Hello everyone,

    Code (CSharp):
    1. NullReferenceException: Object reference not set to an instance of an object. TMPro.TMP_InputField.SendTouchScreenKeyboardStatusChanged () (at <00000000000000000000000000000000>:0) TMPro.TMP_InputField.LateUpdate () (at <00000000000000000000000000000000>:0)
    We've been getting this error recently by some of our players, and we get the reports from game analytics. It happened only with Samsung galaxy 10 though:
    device:SM-G970U, engine_version:unity 2018.4.14 TMpro_version: 1.5.0-preview.1

    This is the exception we get, and the behavior in game causes the onSubmit to be called several times, in our case in the login screen the password field when pressed submit on the virtual keyboard on android causes several login requests (which is fixed on our side by checking if submitted already), but I'm posting here either way just so you can be aware and perhaps fix it if possible.
  2. anton_unity626


    Mar 9, 2022
    Still having similar error but now it's literally on every android device.
    We are using Unity 2021.3.14 and TMPRO version is 3.0.6

    It's not a critical bug, seems like we have a correct result after that, but it's glittering our logs and analytics reports.