I guess the onchanged callback returns null so it returns a null safety  exception