You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by sv...@apache.org on 2022/11/18 18:30:34 UTC

[wicket] branch wicket-9.x updated: ListenerRequestHandler no longer hides IndexOutOfBoundsException in behavior

This is an automated email from the ASF dual-hosted git repository.

svenmeier pushed a commit to branch wicket-9.x
in repository https://gitbox.apache.org/repos/asf/wicket.git


The following commit(s) were added to refs/heads/wicket-9.x by this push:
     new e92a01108a ListenerRequestHandler no longer hides IndexOutOfBoundsException in behavior
e92a01108a is described below

commit e92a01108aa1d7667666ea82b617e3414a3a679d
Author: dr0ps <dr...@users.noreply.github.com>
AuthorDate: Fri Nov 18 17:35:03 2022 +0100

    ListenerRequestHandler no longer hides IndexOutOfBoundsException in behavior
---
 .../apache/wicket/core/request/handler/ListenerRequestHandler.java  | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/wicket-core/src/main/java/org/apache/wicket/core/request/handler/ListenerRequestHandler.java b/wicket-core/src/main/java/org/apache/wicket/core/request/handler/ListenerRequestHandler.java
index 80d0d5b098..5279cadb56 100644
--- a/wicket-core/src/main/java/org/apache/wicket/core/request/handler/ListenerRequestHandler.java
+++ b/wicket-core/src/main/java/org/apache/wicket/core/request/handler/ListenerRequestHandler.java
@@ -210,16 +210,16 @@ public class ListenerRequestHandler
 		}
 		else
 		{
+			final Behavior behavior;
 			try
 			{
-				Behavior behavior = getComponent().getBehaviorById(behaviorId);
-				invoke(requestCycle, policy, ajax, getComponent(), behavior);
+				behavior = getComponent().getBehaviorById(behaviorId);
 			}
 			catch (IndexOutOfBoundsException e)
 			{
 				throw new WicketRuntimeException("Couldn't find component behavior.", e);
 			}
-
+			invoke(requestCycle, policy, ajax, getComponent(), behavior);
 		}
 	}