Β© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#β€’2y agoβ€’
2 replies
πŸŒ·πŸ’ morgan πŸŒΊπŸ’

confused on this error

I'm having trouble understanding what this error is trying to tell me

void square_manager+<ListInvoices>d__5.MoveNext(): System.NullReferenceException: Object reference not set to an instance of an object.
void square_manager+<ListInvoices>d__5.MoveNext(): System.NullReferenceException: Object reference not set to an instance of an object.


manager_invoices.cs
manager_invoices.cs

ListInvoicesResponse result = await square_manager.ListInvoices(); 
ListInvoicesResponse result = await square_manager.ListInvoices(); 


square_manager.cs
square_manager.cs

public static async Task<ListInvoicesResponse> ListInvoices() {  
        try {
            var result = await client.InvoicesApi.ListInvoicesAsync(locationId: null);
            return result;
        }
public static async Task<ListInvoicesResponse> ListInvoices() {  
        try {
            var result = await client.InvoicesApi.ListInvoicesAsync(locationId: null);
            return result;
        }
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

βœ… confused by this error
C#CC# / help
2y ago
❔ confused about Error controller
C#CC# / help
4y ago
Unsure on this error
C#CC# / help
3w ago
This isnt working really confused help
C#CC# / help
3y ago