NullPointerException when call executeQuery()
Hello,
i aways make the select in other select that way, but today i have no idea why executeQuery() may return a exception.
that's my code:
if( rs.next() ){
do{
if( status !=null ){
if( another condition ){
//here the try catch to do the query
try{
query ="a correctly query";
pstmt = Dao.getCon().prepareStatement( query );
//until here it's ok
es_eta = pstmt.executeQuery();//here crash, tha page just stop loading.. and don't go to the catch...
}catch(Exception e){
Dao.log("error: " + e);
}
}
}while(rs.next());
thanks for the help!

