Skip to content

StackOverflow error thrown on Invoices toString() #289

Open

Description

@jawad-r3

Method threw 'java.lang.StackOverflowError' exception. Cannot evaluate com.xero.models.accounting.Invoices.toString()

@OverRide
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Invoices {\n");
sb.append(" invoices: ").append(toIndentedString(invoices)).append("\n");
sb.append("}");
return sb.toString();
}

/**

  • Convert the given object to string with each line indented by 4 spaces (except the first line).
    */
    private String toIndentedString(java.lang.Object o) {
    if (o == null) {
    return "null";
    }
    return o.toString().replace("\n", "\n ");
    }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions