Read only archive ; use https://github.com/JacORB/JacORB/issues for new issues

Bug 1005

Summary: Error if networkInterface without displayName is encountered
Product: JacORB Reporter: francois.vandelft
Component: ORBAssignee: Mailinglist to track bugs <jacorb-bugs>
Status: RESOLVED FIXED    
Severity: major CC: francois.vandelft, jacorb
Priority: P5    
Version: 3.5   
Hardware: PC   
OS: Windows NT   

Description francois.vandelft 2015-03-16 05:09:10 UTC
In 3.6 next code gives an error


IIOPAddress.java>> line 626.
If a NetworkInterface does not have a displayName(), a NULL is returned.
=> The implemented code does not take this null into account.

After reversing to JacOrb 3.5 (without this code), everything works again.


            for (NetworkInterface ni : Collections.list(NetworkInterface.getNetworkInterfaces()))
            {
                boolean isVirtual = false;
                for (String nvi : networkVirtualInterfaces)
                {
                    if (ni.getDisplayName().contains(nvi))
                    {
                        isVirtual = true;
                        break;
                    }
                }
Comment 1 Nick Cross 2015-03-17 06:22:07 UTC
Added test and fix in SHA 802029d2b3781456d287c309a35cd1842e947477