fixed null.pointer exception

updateType can't be null