Azure / azure-sdk-for-net

This repository is for active development of the Azure SDK for .NET. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/dotnet/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-net.
MIT License
5.26k stars 4.61k forks source link

'Null Ref Error' while calling the method #43449

Closed KokOnnChoy closed 5 months ago

KokOnnChoy commented 5 months ago

Type of issue

Other (describe below)

Description

We are running NullRef error after executing the delete command, however the IP firewall rule does get deleted during the execution. The error is happening on certain dev machines, and for myself I don't face the problem while executing on my local machine. So my questions are

  1. Does the method always return 'null' object for all results?
  2. Can we fire and forget if is always return 'null'?
  3. Can we put a try-catch block around the method to continue the execution if null ref error happens?

NullReferError

Page URL

https://learn.microsoft.com/en-us/dotnet/api/microsoft.azure.management.synapse.ipfirewallrulesoperationsextensions.deleteasync?view=azure-dotnet-legacy

Content source URL

https://github.com/Azure/azure-docs-sdk-dotnet/blob/master/xml/Microsoft.Azure.Management.Synapse/IpFirewallRulesOperationsExtensions.xml

Document Version Independent Id

bca8d18d-3c6b-64fc-376e-b8a56040af21

Article author

@azure-sdk

Metadata

jsquire commented 5 months ago

Hi @KokOnnChoy. Thanks for reaching out and we regret that you're experiencing difficulties. The Microsoft.Azure.Management.Synapse package that you're asking about reached end-of-life in September 2023 and is no longer published nor supported by Microsoft. Unfortunately, this means that we're unable to assist with your inquiry.

We strongly advise that you move to the Azure.ResourceManager.Synapse package.

github-actions[bot] commented 5 months ago

Hi @KokOnnChoy. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text "/unresolve" to remove the "issue-addressed" label and continue the conversation.

github-actions[bot] commented 5 months ago

Hi @KokOnnChoy, since you haven’t asked that we /unresolve the issue, we’ll close this out. If you believe further discussion is needed, please add a comment /unresolve to reopen the issue.