com.google.protobuf.Utf8$UnpairedSurrogateException: Unpaired surrogate at index -1

GitHub | emmenlau | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    compile warning about UTF-16

    GitHub | 2 years ago | emmenlau
    com.google.protobuf.Utf8$UnpairedSurrogateException: Unpaired surrogate at index -1

    Root Cause Analysis

    1. com.google.protobuf.Utf8$UnpairedSurrogateException

      Unpaired surrogate at index -1

      at com.google.protobuf.Utf8.encode()
    2. Protocol Buffer Java API
      CodedOutputStream.efficientWriteStringNoTag
      1. com.google.protobuf.Utf8.encode(Utf8.java:460)
      2. com.google.protobuf.CodedOutputStream.efficientWriteStringNoTag(CodedOutputStream.java:483)
      2 frames