Non working getParentDevice()

2005-07-22
2013-05-02
  • Stefano Lenzi

    Stefano Lenzi - 2005-07-22

    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);
    }

     
    • Satoshi Konno

      Satoshi Konno - 2005-07-24

      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.