Read only archive ; use https://github.com/JacORB/JacORB/issues for new issues
Bug 1005 - Error if networkInterface without displayName is encountered
Summary: Error if networkInterface without displayName is encountered
Status: RESOLVED FIXED
Alias: None
Product: JacORB
Classification: Unclassified
Component: ORB (show other bugs)
Version: 3.5
Hardware: PC Windows NT
: P5 major
Assignee: Mailinglist to track bugs
URL:
Depends on:
Blocks:
 
Reported: 2015-03-16 05:09 UTC by francois.vandelft
Modified: 2015-03-17 06:22 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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