I’m not sure we can help you with this problem here, because this exception is thrown from the PrimeFaces code. The problem is in org.primefaces.context.PrimeFacesContext. You could have a look at the source code and check what is causing the NPE. Perhaps this will bring more light into this issue.
Do you play Magic?
Get TopDecked MTG, the #1 Magic App, built by players, for players. Free to use, forever.