Closed GoogleCodeExporter closed 8 years ago
Whooops... that shouldn't happen...
I havent really analized it but from your logcat it's almost clear to me that
the
update check fails.
It wil retrieve the file
http://market-enabler.googlecode.com/svn/branches/MarketChanger%20Starter%20list
/update/latestversion
and expect the content to be numeric.
Somehow you get a different content and this should be handled and a catch
clause
should inform the user that the updatecheck failed and maybe show him the server
response instead of just throwing the error to his parent...
Original comment by michel.racic
on 17 May 2010 at 8:19
Thanks Michel. When I tried to use the ME, that file was completely blank. (It
could
have been that I tried to use it during Google Code Maintenance)
I tried Market Enabler right now, and it seems to work.
I'm glad to have caught a (rare?) bug.
Thanks again.
Original comment by nushio
on 19 May 2010 at 1:43
It shouldn't be (code maintenance should just make it read only) but it can have
happened during maintenance.
Nevertheless, thx a lot for your report because such little mistakes shouldn't
happen.
To fix:
- add empty check and handle throw if it's nut an int.
Update.java:
try {
latestVersion = Integer.parseInt(getHttpString(urlLatestVersion));
} catch (IOException e1) {
Log.i(logName, e1.getLocalizedMessage());
return false;
} catch (NumberFormatException e2) {
Log.i(logName, e1.getLocalizedMessage());
return false;
}
Original comment by michel.racic
on 19 May 2010 at 7:45
This issue was closed by revision r182.
Original comment by michel.racic
on 5 Nov 2010 at 2:41
Fixed with r182
Original comment by michel.racic
on 5 Nov 2010 at 2:41
Original issue reported on code.google.com by
nushio
on 17 May 2010 at 8:07