You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DisplayBackend::DisplayBackend(DisplayPtr display,
const string& deviceName) :
BackendBase("DisplBackend", deviceName),
mDisplay(display)
{
// mDisplay maybe not initilized
// reasonable to add
if(mDisplay) {
mDisplay->start();
}
else {
// inform about the error (throw an exception) or change the object state at invalid
}
}
The text was updated successfully, but these errors were encountered:
iusyk
changed the title
ctor DisplayBackend - pointer is not checke for a nullptr
ctor DisplayBackend - pointer is not checked for a nullptr
May 19, 2020
iusyk
added a commit
to iusyk/displ_be
that referenced
this issue
Jun 17, 2020
Reference:xen-troops#105
The ctor parameter mDisplay is checked for nullptr
If value is nullptr, throws the exception std::invalid_argument
Signed-off-by: Ihor Usyk <[email protected]>
DisplayBackend::DisplayBackend(DisplayPtr display,
const string& deviceName) :
BackendBase("DisplBackend", deviceName),
mDisplay(display)
{
// mDisplay maybe not initilized
// reasonable to add
if(mDisplay) {
mDisplay->start();
}
else {
// inform about the error (throw an exception) or change the object state at invalid
}
}
The text was updated successfully, but these errors were encountered: