Relation null??

From: Emre Yilmaz (emre.yilma..tr.com.tr)
Date: Wed Jun 29 2005 - 10:46:47 EDT

  • Next message: Mike Kienenberger: "Re: Relation null??"

    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



    IMSTP.gif

    03b_2.jpg



    This archive was generated by hypermail 2.0.0 : Wed Jun 29 2005 - 10:45:48 EDT