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.

[321 byte] By [Manoj.s.Jaina] at [2007-11-26 14:54:59]
# 1
Post the relevent section of code
tolmanka at 2007-7-8 8:43:28 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...