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

session.getElementOut is null #32

Closed
thevpc opened this issue Sep 11, 2021 · 1 comment
Closed

session.getElementOut is null #32

thevpc opened this issue Sep 11, 2021 · 1 comment

Comments

@thevpc
Copy link
Owner

thevpc commented Sep 11, 2021

session.getElementOut is null

@thevpc
Copy link
Owner Author

thevpc commented Sep 12, 2021

Actually this is the expected behaviour. Added somme explanation in the javadoc anyways.
Simply put, session.getElementOut() returns an instance of ElementBuilder if it is initialized. So you need to call setElementOut before. However, the recommended way to use structured output is to use session.eout() instead.
This one will create an instance if no one has been initialized.

@thevpc thevpc closed this as completed Sep 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant