Added NULL pointer check to s_get_interface