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

Detected Languages Missing Name Optional #7

Open
MitchellShapiro opened this issue Aug 5, 2017 · 1 comment
Open

Detected Languages Missing Name Optional #7

MitchellShapiro opened this issue Aug 5, 2017 · 1 comment

Comments

@MitchellShapiro
Copy link

I am having trouble getting the name Optional from this: Language in = api.detectionApi().detect(translate).get(); Which gives me an error saying it is empty when I try: in.name().get(). Using a standard Language: Language convert = Language.EN; Works fine when I do this: convert.name().get() Not sure whether this is me or you, but maybe you can see something I don't even if it's my fault. Thanks for the help!

@vbauer
Copy link
Owner

vbauer commented Sep 30, 2017

Could you please provide some code snippet with which I can reproduce this situation?

(Pull request with negative unit-test would be great)

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

2 participants