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

    NullPointerException with CMP

    tobias

      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.