[fixed] NativeCodeGenerator, does null checks on direct buffers now.