Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 1127ea4

Browse files
committed
[[ Bug 19486 ]] Reset error after failed Java method lookup
This patch ensures that the error generated by a failed method lookup is reset if binding is not required.
1 parent 6ef50e8 commit 1127ea4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libscript/src/script-instance.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -835,6 +835,9 @@ __MCScriptResolveForeignFunctionBinding(MCScriptInstanceRef p_instance,
835835
return MCScriptThrowUnableToResolveForeignHandlerError(p_instance,
836836
p_handler);
837837
}
838+
839+
MCErrorReset();
840+
838841
*r_bound = false;
839842

840843
return true;

0 commit comments

Comments
 (0)