Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Database doesn't handle "no data" correctly #77

Open
exside opened this issue Dec 5, 2013 · 0 comments
Open

Database doesn't handle "no data" correctly #77

exside opened this issue Dec 5, 2013 · 0 comments

Comments

@exside
Copy link
Contributor

exside commented Dec 5, 2013

Steps to reproduce:

uninstall the app on the device (to remove an existing database), disable any network connection (also mobile data), so the device will try to load the data from the database...

the problem now is, that it actually loads a model from NO DATA, so it will nicely load and then crash because an empty model gets returned...basically NullPointer in FragmentStart at line 91 when the inflateHeader() method calls mMensa.getName();, this will naturally be null...

so what we need is some sort of feedback from the database, that there is no data available (and in that case the app will try to get the data from the api again and again...I'll do that, but I need a correct response from the database manager, that there is no data in the database...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant