I have class like this:
public class Info{
public static String id;
public static ArrayList<String> poruceno;
}
And now I am trying to populate arraylist 'poruceno' from another class:
Info info;
info.id="bla bla bla" //works perfectly
info.poruceno.add("some string"); //Returns null pointer exception :(
I need to add elements from many other classes to this ArrayList 'poruceno' from class Info. Please help :)