currentNode object throws nullpointer exception
In my component's JSP, if I want to reference the current page node using "currentNode" object, it throws a NullPointerException and the whole component then throws a ScriptEvaluationException
My component JSP does have the 'global.jsp' included at the top.
Also, the component throws these exceptions only in a particular site. It works fine in others.
What possible could be the reason for this ? In what conditions does the "currentNode" object be NULL ?