Skip to content

Commit

Permalink
fix(java): Fix java-sdk null pointer exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
Alberto committed Dec 11, 2024
1 parent 0f85470 commit b40c459
Show file tree
Hide file tree
Showing 11 changed files with 37 additions and 96 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -713,6 +713,9 @@ public JsonResponseBodyWithProperty _visitUnknown(Object unknownType) {
httpEndpoint.getPagination().get().visit(new Visitor<Void>() {
@Override
public Void visitCursor(CursorPagination cursor) {
if (cursor.getPage() == null || cursor.getPage().getProperty() == null) {
return null;
}
SnippetAndResultType nextSnippet = getNestedPropertySnippet(
cursor.getNext().getPropertyPath(),
cursor.getNext().getProperty(),
Expand Down Expand Up @@ -797,6 +800,9 @@ public String _visitUnknown(Object o) {

@Override
public Void visitOffset(OffsetPagination offset) {
if (offset.getPage() == null || offset.getPage().getProperty() == null) {
return null;
}
com.fern.ir.model.types.TypeReference pageType = offset.getPage()
.getProperty()
.visit(new RequestPropertyValue.Visitor<com.fern.ir.model.types.TypeReference>() {
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b40c459

Please sign in to comment.