Check if ByteBuf == null and if so throw a NullPointerException