null « Tomcat « JSF Q&A

1. How could randomly my session is null?

I am using Tomcat 6.0, JSF2.0.2 I realized that randomly HttpServletRequest getSession method, returns null. I could the session randomly be null? How can I debug who sets the session to null? I checked ...

2. Does ExpressionLanguage (EL) allow to call a method with a NULL argument?

I use Tomcat7 with JSF2. I use method invocations like

where var is an EL variable. However, if var is null, or i try to call #{bean.method(null) i get an ...