Enforce not null

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>