diff --git a/gluecodium/src/main/resources/templates/dart/DartFunctionException.mustache b/gluecodium/src/main/resources/templates/dart/DartFunctionException.mustache index eaadc086f6..e7a1f934a4 100644 --- a/gluecodium/src/main/resources/templates/dart/DartFunctionException.mustache +++ b/gluecodium/src/main/resources/templates/dart/DartFunctionException.mustache @@ -18,6 +18,7 @@ ! License-Filename: LICENSE ! !}} + {{#if thrownType}}{{#unless attributes.async}} final _{{resolveName}}ReturnReleaseHandle = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction< Void Function(Pointer),