plasma-umass / doppio

Breaks the browser language barrier (includes a plugin-free JVM).
http://plasma-umass.github.io/doppio-demo
MIT License
2.16k stars 174 forks source link

getCanonicalHostName() throws NullPointerException #487

Open cool2man opened 7 years ago

cool2man commented 7 years ago

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)
nybbs2003 commented 7 years ago

I suggest to return "doppio" instead.