Coding rules

Rule #4 Apply defensive coding

Always reasonably re-test your variables for nullity and proper data range compliance.

Unless you are implementing a private method where the arguments have already been triple-checked, always re-check the argument types, range, format and validity.

Even in that case, non-checking means your method will never be shared to other components, because it assumes the caller has already performed some tasks.