[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NullPointerException in WizardStore



not regarding java. just a site that you know of that is good for someone
trying to research web development.??
It is appreciated. jake.
----- Original Message -----
From: Thomas Guettler <guettli@gmx.de>
To: ozone <ozone-users@ozone-db.org>
Sent: Monday, April 03, 2000 4:20 AM
Subject: NullPointerException in WizardStore


> I get a Nullpointerexception in Wizardstore.
> The bug is, in containerForName:
> If ta==NULL, I get Nullpointerexception here /*1*/. The /*2*/ is not
> reached.
>
>
> public synchronized ObjectContainer containerForName (Transaction ta,
> String name)
>             throws Exception {
>         if (name == null)
>             return null;
>
>         TransactionData taData = (TransactionData)ta.data; /*1*/
>
>         if (ta == null /*2*/ || taData.nameTable == null)

>             ObjectID oid = (ObjectID)nameTable.elementForKey (name);
>             return oid != null ? containerForID (ta, oid) : null;
>             }
>
>         if (ta != null) {
>             ObjectID oid = (ObjectID)taData.nameTable.elementForKey
> (name);
>             return (oid != null) ? containerForID (ta, oid) : null;
>             }
>         return null;
>         }
>
>
> The containerForName ist called in Database:
>    public OzoneProxy objectForName (String name)
>           throws Exception {
>       env.logWriter.newEntry (this, "objectForName()... ",
> LogWriter.DEBUG3);
>       ObjectContainer container = env.store.containerForName (null,
> name);
>       return (container != null) ? container.ozoneProxy() : null;
>       }
>
> Does someone know how to fix it?
>