From 0cdd9dd277f18f40339ab77c799f904a0b71b83b Mon Sep 17 00:00:00 2001 From: Peter Donald Date: Sat, 29 Dec 2001 21:55:07 +0000 Subject: [PATCH] When a ConverterException occurs then fail convertion and configuration and re-wrap and throw exception git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270403 13f79535-47bb-0310-9956-ffa450edef68 --- .../myrmidon/components/configurer/DefaultConfigurer.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/proposal/myrmidon/src/java/org/apache/myrmidon/components/configurer/DefaultConfigurer.java b/proposal/myrmidon/src/java/org/apache/myrmidon/components/configurer/DefaultConfigurer.java index e0e2f15b6..e36888e99 100644 --- a/proposal/myrmidon/src/java/org/apache/myrmidon/components/configurer/DefaultConfigurer.java +++ b/proposal/myrmidon/src/java/org/apache/myrmidon/components/configurer/DefaultConfigurer.java @@ -287,7 +287,7 @@ public class DefaultConfigurer getLogger().debug( message, ce ); } - return false; + throw new ConfigurationException( ce.getMessage(), ce ); } catch( final Exception e ) { @@ -296,6 +296,11 @@ public class DefaultConfigurer throw new ConfigurationException( message, e ); } + if( null == value ) + { + return false; + } + try { method.invoke( object, new Object[]{value} );