You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating an ActiveRecord and calling the save() method without touching its values will throw an IllegalArgumentsException: Empty Values. It is not checked whether the constructed ContentValues Object contains any values.
The text was updated successfully, but these errors were encountered:
I was just a little surprised that the Exception was thrown. Given the name and the behavior of the ActiveRecords, I assumed that it would do just nothing if there is nothing to be saved. As the class already tracks which portions have changed (dirty flag) it seems strange that there is an error at all.
But its just my point of view.
When creating an
ActiveRecord
and calling thesave()
method without touching its values will throw anIllegalArgumentsException: Empty Values
. It is not checked whether the constructedContentValues
Object contains any values.The text was updated successfully, but these errors were encountered: