repaired Utils.checkSize when passing null object