SWF-1461 NPE when rendering a JSF view as part of non-webflow request.

This commit is contained in:
Rossen Stoyanchev
2011-06-30 09:47:13 +00:00
parent 0c69e6803e
commit 5b0cf929da

View File

@@ -166,8 +166,11 @@ public class FlowViewStateManager extends StateManager {
if (context.getViewRoot().isTransient()) {
return null;
}
if (!JsfUtils.isFlowRequest()) {
return delegate.saveView(context);
}
FlowSerializedView view = null;
if ((!JsfUtils.isFlowRequest()) || JsfRuntimeInformation.isPartialStateSavingSupported()) {
if (JsfRuntimeInformation.isPartialStateSavingSupported()) {
Object[] state = (Object[]) delegate.saveView(context);
view = new FlowSerializedView(context.getViewRoot().getViewId(), state[0], state[1]);
} else {