Skip to content

Commit

Permalink
Fix #4260: AttachedObjectListHolder IndexOutOfBounds fix 4.0
Browse files Browse the repository at this point in the history
Signed-off-by: melloware <mellowaredev@gmail.com>
  • Loading branch information
melloware committed May 24, 2022
1 parent 1ff6be6 commit 1001e7f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public void restoreState(FacesContext context, Object state) {
add(restored);
}
}
} else {
} else if (this.attachedObjects != null) {
// Assume 1:1 relation between existing attachedObjects and state
for (int i = 0, len = attachedObjects.length; i < len; i++) {
T attachedObject = this.attachedObjects.get(i);
Expand Down

0 comments on commit 1001e7f

Please sign in to comment.