Closed StRigaud closed 2 months ago
I think this is related to how the function is define in the native
part:
static ArrayJ absolute(const DeviceJ &dev, const ArrayJ &src, ArrayJ &dst);
ArrayJ parameters are passed as ref, hence cannot be null
, we should update the function to take ptr
.
We would need to rewrite it as followed:
static ArrayJ Tier1::absolute( DeviceJ* dev, ArrayJ* src, ArrayJ* dst)
and add a check for nullptr
inside the cpp code
Doing so seems to work.
Solved by #42
is fine but
raise an error: