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:28:18 UTC

[wicket] branch master 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 master
in repository https://gitbox.apache.org/repos/asf/wicket.git


The following commit(s) were added to refs/heads/master by this push:
     new 0c4b88e16a ListenerRequestHandler no longer hides IndexOutOfBoundsException in behavior
0c4b88e16a is described below

commit 0c4b88e16a3ec7478fbc8f86991c6b07805ed821
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);
 		}
 	}