Updated Branches: refs/heads/master eb1fa8294 -> 42d431f80
Better is to not catch java.lang.Error. Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/42d431f8 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/42d431f8 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/42d431f8 Branch: refs/heads/master Commit: 42d431f809f73c713e44c38db1976f2461e2ae03 Parents: eb1fa82 Author: Babak Vahdat <[email protected]> Authored: Mon May 27 22:04:03 2013 +0200 Committer: Babak Vahdat <[email protected]> Committed: Mon May 27 22:04:03 2013 +0200 ---------------------------------------------------------------------- .../component/weather/WeatherConfiguration.java | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/42d431f8/components/camel-weather/src/main/java/org/apache/camel/component/weather/WeatherConfiguration.java ---------------------------------------------------------------------- diff --git a/components/camel-weather/src/main/java/org/apache/camel/component/weather/WeatherConfiguration.java b/components/camel-weather/src/main/java/org/apache/camel/component/weather/WeatherConfiguration.java index 8a932f4..08066e1 100644 --- a/components/camel-weather/src/main/java/org/apache/camel/component/weather/WeatherConfiguration.java +++ b/components/camel-weather/src/main/java/org/apache/camel/component/weather/WeatherConfiguration.java @@ -50,7 +50,7 @@ public class WeatherConfiguration { int result = 0; try { result = new Scanner(period).useDelimiter("\\D+").nextInt(); - } catch (Throwable e) { + } catch (Exception e) { // ignore and fallback the period to be an empty string } if (result != 0) {
