Fix index-out-of-bounds bug with DefaultComponentContext#getAllAncestors.
This commit is contained in:
parent
3202e51d7f
commit
13f85325a1
@ -97,8 +97,7 @@ public class DefaultComponentContext implements ComponentContext {
|
||||
|
||||
@Override
|
||||
public List<ViewComponent> getAllAncestors() {
|
||||
final List<ViewComponent> componentStack = this.getRenderContext().getComponentStack();
|
||||
return componentStack.subList(1, componentStack.size());
|
||||
return this.renderContext.getComponentStack();
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user