Fix NULL pointer obj getters