don't call `throw` without arguments

This was replacing all errors with NullPointerException, which is what happens when `throw` is not passed arguments :X