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.


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


square_manager.cs
public static async Task<ListInvoicesResponse> ListInvoices() {  
        try {
            var result = await client.InvoicesApi.ListInvoicesAsync(locationId: null);
            return result;
        }
Was this page helpful?