Hello,
I want to set a table relation to null but I couldn't do this i get an
Exception of nullpointer. How can I set a table relation null or like null.
My code is here;
Visitor visitor = getPersonel(identNo);
Visitor visitor2 = getPersonelByCardNo(cardNo);
if(visitor2==visitor){
visitor2.setCardRel(null);
}else if(visitor2!=null){
visitor2.setCardRel(null);
}else if(visitor!=null){
visitor.setCardRel(null);
}
java.lang.NullPointerException
This archive was generated by hypermail 2.0.0 : Wed Jun 29 2005 - 10:45:48 EDT