Non-final ChannelOutputStream field may be null if we haven't received channel open confirmation or channel open failed. So do null-check.

This commit is contained in:
Shikhar Bhushan
2011-07-16 10:19:10 +01:00
parent 21da5b9f65
commit d6eb5a040e

View File

@@ -240,7 +240,8 @@ public abstract class AbstractChannel
ErrorDeliveryUtil.alertEvents(error, chanReqResponseEvents);
in.notifyError(error);
out.notifyError(error);
if (out != null)
out.notifyError(error);
finishOff();
}