Skip to content

Commit

Permalink
WW-5382 Fix stale bootstrap context on ActionContext
Browse files Browse the repository at this point in the history
  • Loading branch information
kusalk committed Dec 30, 2023
1 parent 15acd72 commit 2024d83
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -325,12 +325,8 @@ public Class<? extends Configuration> type() {
}

protected ActionContext setContext(Container cont) {
ActionContext context = ActionContext.getContext();
if (context == null) {
ValueStack vs = cont.getInstance(ValueStackFactory.class).createValueStack();
context = ActionContext.of(vs.getContext()).bind();
}
return context;
ValueStack vs = cont.getInstance(ValueStackFactory.class).createValueStack();
return ActionContext.of(vs.getContext()).bind();
}

protected Container createBootstrapContainer(List<ContainerProvider> providers) {
Expand Down

0 comments on commit 2024d83

Please sign in to comment.