netty/netty — Issue #166: NioWorker.write0(...) can throw NPE
Author: rshelley
Created: 2012-01-31 06:19:25+00:00
State: open

Like 489 of NioWorker:

} catch (Throwable t) {
*buf.release();*
channel.currentWriteEvent = null;
channel.currentWriteBuffer = null;

can throw an NPE if "buf" is set to null in the try block and an exception is throw after (line 471 sets buf to null, for example).