dotnet-samples icon indicating copy to clipboard operation
dotnet-samples copied to clipboard

exception

Open Kimo11335 opened this issue 5 years ago • 0 comments

Sample Name: https://developers.google.com/drive/api/v3/quickstart/dotnet foreach (MessagePart p in emailInfoResponse.Payload.Parts) { if (p.MimeType == "text/html") { byte[] data = FromBase64ForUrlString(p.Body.Data); string decodedString = Encoding.UTF8.GetString(data);

                                }
                            }                   

Expected Behavior

Exception: An unhandled exception of type 'System.NullReferenceException' occurred in Gmail.exe Additional information: Object reference not set to an instance of an object.

Specifications

  • .NET version:
  • OS (Mac/Linux/Windows):

Kimo11335 avatar Jan 31 '21 22:01 Kimo11335