ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
This could be related to your network connection. If you do not have a non-loopback address available (for example, when your device has no network connection), InetAddressFactory.newNonLoopback() will return null.
The only safe way to handle this is to check the result for null.