How can I additionally check or apply to the condition to check the value of null ? It is not possible to write in isEmpty() brackets.

 if (mobile.getOutputMetadata().getVideoUrl().isEmpty()) 

I use for the input string, because the string can be null .

  • 2
    == null ? I did not understand something? - Vladyslav Matviienko

1 answer 1

 if(TextUtils.isEmpty(mobile.getOutputMetadata().getVideoUrl())) { ........ } 

I understood correctly?

TextUtils.isEmpty() checks for null and for length

  • Yes, the option came, thank you. - Morozov