Hi, the method org.cybergarage.upnp.Device.getParentDevice() is bugged, the fixed method is:
public Device getParentDevice() { if(isRootDevice()) return null; Node devNode = getDeviceNode(); Node aux = null; //<device><deviceList><device> aux = devNode.getParentNode().getParentNode(); return new Device(aux); }
Hi Stefano,
I didn't check the added method carefully and I fixed the bug in CyberLink C++ and Java.
Thanks for your report :-)
Log in to post a comment.
Hi,
the method org.cybergarage.upnp.Device.getParentDevice() is bugged, the fixed method is:
public Device getParentDevice() {
if(isRootDevice())
return null;
Node devNode = getDeviceNode();
Node aux = null;
//<device><deviceList><device>
aux = devNode.getParentNode().getParentNode();
return new Device(aux);
}
Hi Stefano,
I didn't check the added method carefully and
I fixed the bug in CyberLink C++ and Java.
Thanks for your report :-)