From 9a3ae09fb4b1113d9bb4f139c87ec4213b08a09a Mon Sep 17 00:00:00 2001 From: Lorenzo Pichilli Date: Tue, 4 Oct 2022 12:21:50 +0200 Subject: [PATCH] added missin return to Util.invokeMethodIfExists --- .../java/com/pichillilorenzo/flutter_inappwebview/Util.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/Util.java b/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/Util.java index bbe1e4f1..c7ce0534 100755 --- a/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/Util.java +++ b/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/Util.java @@ -328,7 +328,7 @@ public class Util { for (Method method : methods) { if (method.getName().equals(methodName)) { try { - method.invoke(o, args); + return method.invoke(o, args); } catch (IllegalAccessException e) { return null; } catch (InvocationTargetException e) {