I think I was wrong about needing to subscribe to [email protected] - it may be that you need to sign up for [EMAIL PROTECTED] in order to bypass the manual email administration stuff.
On Tue, Feb 19, 2008 at 8:37 PM, <[EMAIL PROTECTED]> wrote: > Author: kmenard > Date: Tue Feb 19 17:37:21 2008 > New Revision: 629308 > > URL: http://svn.apache.org/viewvc?rev=629308&view=rev > Log: > Replaced a nested exception with a simpler check. > > Modified: > > tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/internal/services/BindingSourceImpl.java > > Modified: > tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/internal/services/BindingSourceImpl.java > URL: > http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/internal/services/BindingSourceImpl.java?rev=629308&r1=629307&r2=629308&view=diff > > ============================================================================== > --- > tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/internal/services/BindingSourceImpl.java > (original) > +++ > tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry/internal/services/BindingSourceImpl.java > Tue Feb 19 17:37:21 2008 > @@ -20,6 +20,7 @@ > import static org.apache.tapestry.ioc.internal.util.Defense.notBlank; > import static org.apache.tapestry.ioc.internal.util.Defense.notNull; > import org.apache.tapestry.ioc.internal.util.TapestryException; > +import org.apache.tapestry.ioc.internal.util.InternalUtils; > import org.apache.tapestry.services.BindingFactory; > import org.apache.tapestry.services.BindingSource; > > @@ -48,14 +49,8 @@ > notNull(component, "component"); > notBlank(defaultPrefix, "defaultPrefix"); > > - try > - { > - notBlank(expression, "expression"); > - } > - catch (final Exception ex) > - { > - throw new > TapestryException(ServicesMessages.emptyBinding(description), location, ex); > - } > + if (InternalUtils.isBlank(expression)) > + throw new > TapestryException(ServicesMessages.emptyBinding(description), location, null); > > // Location might be null > > > > -- Jesse Kuhnert Tapestry / OGNL / Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
