Prevent  null deref crash