From 57c65b934ee697068ef9889e17366005fbf92160 Mon Sep 17 00:00:00 2001 From: anttil <anttil> Date: Wed, 3 Oct 2012 14:47:37 +0000 Subject: [PATCH] SWE-2 / SP-314 : Fix stale reference problem SVN: 26976 --- .../cisd/openbis/uitest/infra/webdriver/PageProxy.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui-test/source/java/ch/systemsx/cisd/openbis/uitest/infra/webdriver/PageProxy.java b/ui-test/source/java/ch/systemsx/cisd/openbis/uitest/infra/webdriver/PageProxy.java index fe6071bf13e..58c1805e5c5 100644 --- a/ui-test/source/java/ch/systemsx/cisd/openbis/uitest/infra/webdriver/PageProxy.java +++ b/ui-test/source/java/ch/systemsx/cisd/openbis/uitest/infra/webdriver/PageProxy.java @@ -66,8 +66,8 @@ public class PageProxy { System.out.println("STALE REFERENCE - RELOADING " + self.getClass().getSimpleName()); - init(clazz, (T) self); - return proceed.invoke(self, args); + T t = get(clazz); + return proceed.invoke(t, args); } else { throw e.getTargetException(); -- GitLab