incubator-projects mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Hammant <P...@ThoughtWorks.net>
Subject Re: [FTPServer] configuration
Date Tue, 10 Aug 2004 13:07:59 GMT
Sergey,

Because of the potential for NPE. This can bappen using Configuration 
from Avalom-Framework

- Paul

>Good day.
>
>        // get autometic user home creation flag
>        mbCreateHome = false;
>        tmpConf = conf.getChild("create-user-home", false);
>        if(tmpConf != null) {
>            mbCreateHome = tmpConf.getValueAsBoolean(mbCreateHome);
>        }
>
>Why not use such construction?:
>
>mbCreateHome =
>conf.getChild("create-user-home").getValueAsBoolean(false);
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: projects-unsubscribe@incubator.apache.org
For additional commands, e-mail: projects-help@incubator.apache.org


Mime
View raw message