Main class in JUPnP code Fails

I tried to raise an issue on the github repo but it would not accept my submission.

The current code in the Main class fails because the returned registry is null.

        UpnpService upnpService = new UpnpServiceImpl();
        upnpService.getRegistry().addListener(listener);
        upnpService.startup();

Reorganized like this works.

        UpnpService upnpService = new UpnpServiceImpl();
        upnpService.startup();
        upnpService.getRegistry().addListener(listener);

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.