traex/RetrofitExample

NPE when internet connection is too weak

mduisenov opened this issue · 1 comments

When I have good internet connection app works very well. no crashes. But when thereis weak mobile/wi-fi internet connection, I get NPE.
Can TypeAdapterFactory return null, if my pojo isn't initialized? How can I initial it?

when I compile the code it throws exception as follows:

Error:
A problem occurred configuring root project 'project_name'.
Module version de.keyboardsurfer.android.widget:crouton:1.8.4 depends on libraries but is not a library itself

I solved it following the link below:
http://stackoverflow.com/questions/24450508/crouton-depends-on-libraries-but-is-not-a-library-itself