2 Replies Latest reply on Nov 4, 2005 5:30 AM by Emmanuel Bernard

    NullPointerException when accessing entity bean property

    Henrik Johansson Newbie


      I have an, in my oppinion, weird behaviour when working with entity beans. I run JBoss 4.0.3 RC2 with EJB RC3 plugin.

      If I store a row (a person) in a database table where some fields are set to [NULL] and then when later getting this row through the EntityManager.find method I correctly get the specified person. BUT, when trying to access any field holding a [NULL] value it throws this NullPointerException right up my face.

      Is this an EJB RC3 issue that is to be fixed (maybe already fixed?) or is this the way it is supposed to work?