Merge "Return null for getSubmitPdu() for encoding failure instead of NPE"