-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Potential code bug in PersistentBag (?)
PostPosted: Wed Aug 24, 2005 2:16 pm 
Newbie

Joined: Wed Aug 24, 2005 1:43 pm
Posts: 10
Hi,
I am using a bag in one of my classes with a regular mapping that works fine when I run it via Eclipse in stand-alone. When I run it within weblogic 8.1sp3 (nothing fancy here, i.e. I use the same hibernate configuration xml file), I am getting a NullPointerException in PersistentBag.size very consistently in one of my test cases. This is with hibernate 3.0.5 on java 1.4.2_06.

Upon looking at the source code, the private List bag member is not initialized for the PersistentBag(SessionImplementor session) or PersistentBag() constructors. My test case works fine if I initialize the list in the PersistentBag(SessionImplementor session) constructor.

could you confirm that this uninitialization is actually a problem? (first time I've looked at the code base so I am not sure how to assess this even if it looks fishy)

Thanks!
Sebastien


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.