rootNode of Device is null for non-root devices
Brought to you by:
skonno
On initialization of a device in
CyberLink::Device::initDeviceList(), the root node is not
propagated to child devices. This leads to null pointer
exceptions when relying on
CyberLink::Device::getRootDevice() to return a valid
pointer (see f.i.
CyberLink::ControlRequest::setRequestHost() line 46).
The bug can be fixed by changing line 176 in
cybergarage/upnp/Device.cpp from:
Device *dev = new Device(node);
to:
Device *dev = new Device(rootNode, node);
Fixed source file
Logged In: YES
user_id=559351
The root node is a root node of description XML structure.
The root node is already null. but root node is set when a
control point returns the discoverd device list.
Do you have any problems ?