Had almost the same issue while using DynaView and exactly the same ExceptionHandler code. In my case Facescontext was null, not ViewRoot. One can get context from ExceptionQueuedEvent, but i’m not sure that’s correct. fc = event.getContext().getContext();
Actually I’m still working on that DynaView functionality, and the biggest problem I have is that PrettyFaces or PrimeFaces or both throw NullPointerException when I try to redirect during RESTORE_VIEW phase
Do you play Magic?
Get TopDecked MTG, the #1 Magic App, built by players, for players. Free to use, forever.