Search Unity

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

    FernandoHC

    Joined:
    Feb 6, 2018
    Posts:
    338
    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

    anton_unity626

    Joined:
    Mar 9, 2022
    Posts:
    3
    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.