ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran" <stev...@iseran.com>
Subject Re: Possible bug fix for LoadFile.java
Date Wed, 29 May 2002 20:42:28 GMT

----- Original Message ----- 
From: "Diane Holt" <holtdl@yahoo.com>
To: "Ant Developers List" <ant-dev@jakarta.apache.org>
Sent: Wednesday, May 29, 2002 11:39 AM
Subject: Re: Possible bug fix for LoadFile.java


> --- Magesh Umasankar <umagesh@apache.org> wrote:
> > What if crh.readFully(...) returns null?
> 
> Yeah -- it actually needs to be:
>   if( text != null ) {
>     if( text.length > 0 ) {

you can short cut it:
 if( text != null  && text.length > 0) {



--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message