Change-Id: I82faa31e2e3433eaccbfe90885801e976bd99c2f
Signed-off-by: Joohyun Kim <joohyune.kim@samsung.com>
pBuffer = (ByteBuffer*)data.GetAt(SERIAL_DATA_BODY);
if (pBuffer != null)
{
+ pBuffer->Flip();
ArrayList* pData = const_cast<ArrayList*>(&data);
pData->Remove(*pBuffer);
_SerialPortEventArg* pEventArg= new (std::nothrow) _SerialPortEventArg(pBuffer);
}
else if (pCommand->Equals(SERIAL_COMMAND_ERROR, true))
{
- _SerialPortEventArg* pEventArg= new (std::nothrow) _SerialPortEventArg(pBuffer);
+ _SerialPortEventArg* pEventArg= new (std::nothrow) _SerialPortEventArg(null);
if(pEventArg != null)
{
SysLog(NID_IO, "_SerialPortImpl::OnDataReceived Event Fire");