Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ClientUtil#extractBaseFromRdfModel returns null for a correct Base and null next Page #90

Closed
berezovskyi opened this issue Mar 27, 2021 · 0 comments · Fixed by #102
Closed
Labels
Milestone

Comments

@berezovskyi
Copy link
Contributor

org.eclipse.lyo.trs.client.util.ClientUtil#extractBaseFromRdfModel has a fall-though flow path:

if (ProviderUtil.isNotEmptySingletonArray(nextPageArray) && nextPageArray[0] instanceof Page) {
    nextPage = (Page) nextPageArray[0];
    baseObj.setNextPage(nextPage);
    log.debug("finished extracting base from rdf model");
    return baseObj;
}
log.debug("finished extracting base from rdf model");
// FIXME Andrew@2019-07-15: nulls
return null;

In which the default value returned is null despite having a valid (last) page of the base.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant