ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: cvs commit: ant/src/main/org/apache/tools/ant/taskdefs/optional/starteam TreeBasedTask.java
Date Thu, 27 Mar 2003 08:10:47 GMT
On 27 Mar 2003, <bodewig@apache.org> wrote:

>   log("checking label " + stLabel.getName(), Project.MSG_DEBUG); 
> - if (stLabel.getName().equals(this.label)) {
> + if (stLabel != null && !stLabel.isDeleted() && stLabel.getName().equals(this.label))
{

given that the log line will have thrown a NPE if the first test in
the if statement fails, it looks a bit redundant 8-)

I've kept it in anyway.

Stefan

Mime
View raw message