The actualy exceptions which are thrown during the computation in an operator are often swallowed and instead a NullPointerException is thrown.
This is caused by GeoTools. It replaced its own listener to JAI and changes the behaviour.
The original JAI listener rethrows exceptions but the GeoTools listener ignores them.
In order to prevent GeoTools from replacing the listener we have to set our own listener which mimics the original one.