(with Jason Whitehouse) Fixed null pointer when saving changes in tableview