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
Hi,
I just started using greenDAO and found out that when database is empty and loadAll() is called, it returns an EmptyList. As it is an abstractlist no elements can be added later. This can be painful for some network related app devs as they usually fetch data for first time from the network or when db is cleared. As it is returning List it can be confusing so do return null for checking purpose.
Thanks.
The text was updated successfully, but these errors were encountered:
revic1993
changed the title
Returning EmptyList which can't be altered later on loadAll()
Suggestion
Jan 21, 2016
Hi,
I just started using greenDAO and found out that when database is empty and loadAll() is called, it returns an EmptyList. As it is an abstractlist no elements can be added later. This can be painful for some network related app devs as they usually fetch data for first time from the network or when db is cleared. As it is returning List it can be confusing so do return null for checking purpose.
Thanks.
The text was updated successfully, but these errors were encountered: