Android LiveData null error when trying to update object
问题 I am looking for help to better understand LiveData in Android. I have created an application that allows a user to view, edit or create entries in a db. I have used a viewmodel on the form activity to share information between the activity and fragments and to also make the data Lifecycle aware. The code works great when I load a entry from the database. Any changes are captured and saved back to the database However when I want to create a new entry using the same code I get Caused by: java