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

Re: no such Method Error while running xml/Store.java with 0.4-dev6



Thank you for your reply. But I had a situation where nameTable was
null. But
ta.data not. So I changed it to the following. It was working with some
examples I programmed. 
Does someone know what is going on in this function?

    public synchronized ObjectContainer containerForName (Transaction
ta, String name)
            throws Exception {
        if (name == null)
            return null;


        if (ta == null || ((TransactionData)ta.data) == null || 
	    ((TransactionData)ta.data).nameTable==null) {
            ObjectID oid = (ObjectID)nameTable.elementForKey (name);
            return oid != null ? containerForID (ta, oid) : null;
            }

        if (ta != null) {
            ObjectID oid =
(ObjectID)((TransactionData)ta.data).nameTable.elementForKey (name);
            return (oid != null) ? containerForID (ta, oid) : null;
            }
        return null;
        }