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;
4 Comments
Nate Drake
Should the values for these @Element annotations be com.acme.User.class instead of com.acme.User?
Dave Newton
They are.
Sanjeev Sharma
The examples showing the usage of the annotation is wrong. It should have the .class at the end of it..
It is hard for someone to follow, who just goes by examples...
Philip Luppens
Fixed - thanks.