Guilherme, para tratar a string nula vc pode usar o TextUtils.isEmpty()
-- Outra alternativa é o fallback, como vc citou:
public String getObs() {
return obs == null ? "" : obs;
}
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.






0 comentários:
Postar um comentário