[BUG]Add nullptr check
Hi @sagunb Any update on this PR? Please. Thank you!
When we get inputs of Merge operator by this API, we may get segmentation fault since the input can be nullptr.
Add nullptr check to avoid this bug.