0 Replies Latest reply on Jul 15, 2002 9:52 AM by Tobias Frech

    NullPointerException with CMP

    Tobias Frech Apprentice

      cisbrh wrote:

      Q: Why do I get a NullPointerException when loading a CMP field of type int, float etc... that is null ?

      A: the persisted attribute in the bean must use a wrapper class (Integer, Float etc..) and not a primitive type (int, float etc..). That is because primitive types cannot be null.