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

Android Silent Crash when StatusCodeAndResponse is Null #1

Open
nkavian opened this issue Oct 20, 2012 · 1 comment
Open

Android Silent Crash when StatusCodeAndResponse is Null #1

nkavian opened this issue Oct 20, 2012 · 1 comment

Comments

@nkavian
Copy link

nkavian commented Oct 20, 2012

The "doInBackground" method in the ClutchAPIClient -> AsyncTask, since my RPC port is having an issue for whatever reason, the method throws an exception which then causes the return value to be NULL.

The right return value would be something like this:

  • return new StatusCodeAndResponse(500,null);

Since the code within "onPostExecute" does not check for a NULL resp, it causes the whole Android APP to crash.

If the live Clutch RPC is taken offline, it will probably take all the Android Apps with it..

@galex
Copy link

galex commented Mar 5, 2013

Hello,

We've got the same problem right now and we didn't look into the RPC side, but yes the library is not clear at all on what is going on. It should at least gracefully fall down without crashing the app.

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

2 participants