prevent undefined behavior if t was null