I would like to know why I have got this error. Have you got idea and do you know how to fix it?
Error(I get this error in put()):
Exception in thread "main" java.lang.NullPointerException
at nacs.put(nacs.put:36)
at Program.main(Program.java:69)
Program: (Main)
Nac nacs = new Nac();
nacs.put(new Intsult(1));
nacs.put(new Intsult(2));
Class:
public class Nac implement IPoraw
{
public List<IAbstrsUlt> abs;
public void put(IAbstrsUlt value)
{
abs.add(value);
}
}