Bonjour,
Sur Android (2.3.3)
J'ai ce bout de code qui fait planter l'application (Java.Lang.NullPointerException)
==> crash
==> crashCode:
1
2
3 String title = ""; if(title.isEmpty() == false) {
==> OKCode:
1
2
3 String title = null; if(title.isEmpty() == false) {
Je ne comprends pas pourquoiCode:
1
2
3 String title = "toto"; if(title.isEmpty() == false) {
Merci d'avance à celui qui saura m'aider
PS : débutant en Java et avec Android, alors pas taper trop fort...