Error formatting macro: snippet: java.lang.NullPointerException

Usage

Error formatting macro: snippet: java.lang.NullPointerException

Parameters

Error formatting macro: snippet: java.lang.NullPointerException

Examples

// The key property for User objects within the users collection is the <code>userName</code> attribute.
@Element( value = com.acme.User.class )
private Map userMap;

@Element( value = com.acme.User.class )
public List userList;
  • No labels

4 Comments

  1. Should the values for these @Element annotations be com.acme.User.class instead of com.acme.User?

  2. The examples showing the usage of the annotation is wrong. It should have the .class at the end of it..

    @Element( value = com.acme.User.class )
    private Map userMap;
    
    @Element( value = com.acme.User.class )
    public List userList;
    

    It is hard for someone to follow, who just goes by examples...