CE-487 check if not null before invoking method