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

getCanonicalHostName() throws NullPointerException #487

Open
cool2man opened this issue Nov 7, 2016 · 1 comment
Open

getCanonicalHostName() throws NullPointerException #487

cool2man opened this issue Nov 7, 2016 · 1 comment
Labels

Comments

@cool2man
Copy link

cool2man commented Nov 7, 2016

InetAddress.getLocalHost().getCanonicalHostName() throws a NullPointerException.
Stack trace:

at java.net.InetAddress.getCachedAddresses(InetAddress.java:897)
at java.net.InetAddress.getAllByName0(InetAddress.java:1272)
at java.net.InetAddress.getAllByName0(InetAddress.java:1253)
at java.net.InetAddress.getHostFromNameService(InetAddress.java:634)
at java.net.InetAddress.getCanonicalHostName(InetAddress.java:588)
@jvilk jvilk added the bug label Nov 13, 2016
@nybbs2003
Copy link

I suggest to return "doppio" instead.

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

No branches or pull requests

3 participants