como valida obj quando vem NullPointerException...
estou fazendo assim:
[String nome = resp.getParameter("nome");
Cliente c = new Cliente();
PrintWriter saida = respon.getWriter();
try {
Fachada inst = Fachada.getInstancia();
c = inst.consulta(nome);
if(c.getNome() != null){
saida.println("menu.jsp");
saida.println(c.getNome());
}else{
if(c.getNome()== ""){
saida.println("Não Existe Usuario Cadastrado Com este nome "+nome);
}
}
} catch (ClienteException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (ConectarException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}