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
The ctor DisplayCommandHandler::DisplayCommandHandler takes the followinf input parameters
-DisplayPtr display,
-ConnectorPtr connector,
-BuffersStoragePtr buffersStorage,
-EventRingBufferPtr eventBuffer
all of the parameters are the pointers (rather shared_ptr)
The problems
parameters must be checked for a nullptr
There is the following code
LOG(mLog, DEBUG) << "Create command handler, connector name: "
<< mConnector->getName();
Of course in the case of null pointer - this is crash
Solution
check all parameters for a nullptr
wrap the logging in block if(mConnector){}
The text was updated successfully, but these errors were encountered:
iusyk
added a commit
to iusyk/displ_be
that referenced
this issue
Jun 22, 2020
Description
The ctor DisplayCommandHandler::DisplayCommandHandler takes the followinf input parameters
-DisplayPtr display,
-ConnectorPtr connector,
-BuffersStoragePtr buffersStorage,
-EventRingBufferPtr eventBuffer
all of the parameters are the pointers (rather shared_ptr)
The problems
LOG(mLog, DEBUG) << "Create command handler, connector name: "
<< mConnector->getName();
Of course in the case of null pointer - this is crash
Solution
The text was updated successfully, but these errors were encountered: