That is, setText when it is null, otherwise it will report an error? There are many ways to do this, such as setting it to "" if it is judged to be null. Or catch exceptions individually for each setText. Or rewrite the setText method yourself, and add a catch exception or empty judgment in it
That is, setText when it is null, otherwise it will report an error? There are many ways to do this, such as setting it to "" if it is judged to be null. Or catch exceptions individually for each setText. Or rewrite the setText method yourself, and add a catch exception or empty judgment in it