if(channel != null)
if (channel != null) {
        public void down(Event evt) {            if(channel != null)                channel.down(evt);            else                if(log.isErrorEnabled()) log.error("channel == null");        }