hi all,
i'm new to java language and i'd like to know :
i have made a progam where i throw java.lang.NullPointerException this way :
the problem is that when a NullPointerException exist, i do have this result :
and nothing else (i mean i don't know where in my code is the error)
is there a way to know which code part is the reason of the error ? Best regards X-),
Elise
i'm new to java language and i'd like to know :
i have made a progam where i throw java.lang.NullPointerException this way :
Code:
public StringBuffer search(String SQLstring, StringBuffer sb_DATA) throws java.lang.NullPointerException {
try
{
.....
}
catch (NullPointerException d)
{
System.out.println("error : " + d + "\n");
d.printStackTrace();
}
}
Code:
error : java.lang.NullPointerException
and nothing else (i mean i don't know where in my code is the error)
is there a way to know which code part is the reason of the error ? Best regards X-),
Elise