Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DoesObjectExist异常 ,errorResponse 可能为null,没有判断, 导致NullReferenceException #127

Open
im-zds opened this issue Jul 9, 2021 · 0 comments

Comments

@im-zds
Copy link

im-zds commented Jul 9, 2021

if (errorResponse.StatusCode == HttpStatusCode.NotFound)

下载出错,System.NullReferenceException: Object reference not set to an instance of an object.
at Aliyun.OSS.OssClient.DoesObjectExist(String bucketName, String key) in D:\SDKRelease\aliyun-oss-csharp-sdk\sdk\OssClient.cs:line 1636

@im-zds im-zds changed the title 没有进行Null判断,errorResponse 可能为null, 导致NullReferenceException DoesObjectExist异常 ,errorResponse 可能为null,没有判断, 导致NullReferenceException Jul 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant