WeatherInformation: catching Throwable in MapProgressFragment
authorgu.martinm@gmail.com <gu.martinm@gmail.com>
Sun, 21 Sep 2014 20:51:33 +0000 (22:51 +0200)
committergu.martinm@gmail.com <gu.martinm@gmail.com>
Sun, 21 Sep 2014 20:51:33 +0000 (22:51 +0200)
Android/WeatherInformation/src/de/example/exampletdd/fragment/map/MapProgressFragment.java

index 7808d7a..aa4b6e4 100644 (file)
@@ -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);
             }