no log cat
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String mineconstruc.com.minha_agenda_model.Aluno.getNome()' on a null object reference
no log cat Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String mineconstruc.com.minha_agenda_model.Aluno.getNome()' on a null object reference
at mineconstruc.com.minha_agenda_ui.activity.FormularioNovoAlunoActivity.onCreate(FormularioNovoAlunoActivity.java:42)
at android.app.Activity.performCreate(Activity.java:7327)
at android.app.Activity.performCreate(Activity.java:7318)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1271)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3094
meu código de aluno
package mineconstruc.com.minha_agenda_dao;
import java.util.ArrayList;
import java.util.List;
import mineconstruc.com.minha_agenda_model.Aluno;
public class AlunoDAO {
private static final List<Aluno> alunos = new ArrayList<>();
public void salva(Aluno aluno) {
alunos.add(aluno);
}
public List<Aluno> todos() {
return new ArrayList<>(alunos);
}
}