NullPointerException on function with primitive result declaration

Description

The following minimal example shows the error:

When decompiling the function `f` I found the following return expression:

This happened in a Java interop scenario where the called Java method had no return value but was in the return position of the primitive Clojure function.
The compiler should check for `null` on compilation.

Another example - calling a method with void return as the last expression fails in a similar way:

Environment

None

Assignee

Unassigned

Reporter

import

Approval

None

Patch

None

Affects versions

Priority

Minor
Configure