Hi, Niklas,

It is protection from NPE due to multithreading

2006/1/14, Niklas Gustavsson <[EMAIL PROTECTED]>:

> Hi
>
> within the code we have quite a few of these constructions:
>
> FtpRequestImpl request = m_request;
> if(request != null) {
>     request.setObserver(observer);
> }
>
> I'm trying to understand the rationale behind these. Is it a coding
> convention that we for any reason would like to keep?
>
> /niklas
>
> -------
> Niklas Gustavsson
> http://www.protocol7.com
> mailto:[EMAIL PROTECTED]
>
>


--
Sergey Vladimirov

Reply via email to