Most of the errors are just sanity checks, as the most of null-pointers were already checked in other ways.
Part of implementing #105