i am using a List of <Friend>
, Friend is a class that i have with some info about a person, name, desc, etc...
ok, this is the code on the start of the class:
private List<Friend> friends;
and later... in a method of the class:
Friend a = new Friend("Pablo SáeZ", "Total", "39.68333", "-0.32667", new Date());
friends.add(a);
ok, i have the nullpointerexception on the line friends.add(a);
can someone explain why?
thanks