Skip to content
This repository was archived by the owner on Nov 25, 2022. It is now read-only.

Commit bfcc22a

Browse files
committed
Oops
1 parent b13c301 commit bfcc22a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/eu/faircode/xlua/XParam.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public void setResult(Object result) throws Throwable {
145145
if (BuildConfig.DEBUG)
146146
Log.i(TAG, "Set " + this.getPackageName() + ":" + this.getUid() +
147147
" result=" + result + " return=" + this.returnType);
148-
if (result != null && this.returnType != null) {
148+
if (result != null && !(result instanceof Throwable) && this.returnType != null) {
149149
result = coerceValue(this.returnType, result);
150150
if (!boxType(this.returnType).isInstance(result))
151151
throw new IllegalArgumentException(

0 commit comments

Comments
 (0)