From: gu.martinm@gmail.com Date: Sun, 21 Sep 2014 20:51:33 +0000 (+0200) Subject: WeatherInformation: catching Throwable in MapProgressFragment X-Git-Tag: weatherinformation-1.0~132 X-Git-Url: https://git.gumartinm.name/?a=commitdiff_plain;h=10e32a1347713d8be78732b983dd9ef2d90ba5af;p=AndroidWeatherInformation WeatherInformation: catching Throwable in MapProgressFragment --- diff --git a/src/de/example/exampletdd/fragment/map/MapProgressFragment.java b/src/de/example/exampletdd/fragment/map/MapProgressFragment.java index 7808d7a..aa4b6e4 100644 --- a/src/de/example/exampletdd/fragment/map/MapProgressFragment.java +++ b/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); }