Hi, if all my network interfaces are disabled, I have the following exception.
It would be possible to do some checks in that method to see if it was
possible to find a network address to avoid this NPE, but the problem
will occur in the callers of that method and should be fixed here.
Or it would be possible to throw an IO exception but the interface
doesn't allow that and should be modified in that case.
What's the best option ?
Matthieu
[java] java.lang.NullPointerException
[java] at
net.java.sip.communicator.impl.netaddr.NetworkAddressManagerServiceImpl.getLocalHost(NetworkAddressManagerServiceImpl.java:303)
[java] at
net.java.sip.communicator.impl.protocol.sip.ProtocolProviderServiceSipImpl.getLocalViaHeaders(ProtocolProviderServiceSipImpl.java:967)
[java] at
net.java.sip.communicator.impl.protocol.sip.SipMessageFactory.createRegisterRequest(SipMessageFactory.java:1046)
[java] at
net.java.sip.communicator.impl.protocol.sip.SipRegistrarConnection.register(SipRegistrarConnection.java:205)
[java] at
net.java.sip.communicator.impl.protocol.sip.ProtocolProviderServiceSipImpl.register(ProtocolProviderServiceSipImpl.java:309)
···
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net