From: gu.martinm@gmail.com Date: Sun, 21 Sep 2014 20:51:33 +0000 (+0200) Subject: WeatherInformation: catching Throwable in MapProgressFragment X-Git-Url: https://git.gumartinm.name/?a=commitdiff_plain;h=4126f0dfb0c799ed830eb5e19a32453677a6a46f;p=JavaForFun WeatherInformation: catching Throwable in MapProgressFragment --- diff --git a/Android/WeatherInformation/src/de/example/exampletdd/fragment/map/MapProgressFragment.java b/Android/WeatherInformation/src/de/example/exampletdd/fragment/map/MapProgressFragment.java index 7808d7a..aa4b6e4 100644 --- a/Android/WeatherInformation/src/de/example/exampletdd/fragment/map/MapProgressFragment.java +++ b/Android/WeatherInformation/src/de/example/exampletdd/fragment/map/MapProgressFragment.java @@ -112,7 +112,7 @@ public class MapProgressFragment extends Fragment { WeatherLocation weatherLocation = this.doDefaultLocation(latitude, longitude); try { weatherLocation = this.getLocation(latitude, longitude); - } catch (final IOException e) { + } catch (final Throwable e) { // Hopefully nothing goes wrong because of catching Throwable. Log.e(TAG, "GetAddressTask doInBackground exception: ", e); }