NullPointerException in ServletContext.setAttribute()
Hi,
I'm getting NullPointerException in setAttribute(String, Collection);
In collection, I'm passing list object and li't size() is 8 showing all elements in System.out. But when I pass same object on next line to setAttribute() then it throws NullPointerException. Why?
Please exaplain this.

