added null pointer checks for netty4x transport server