//
-// Open Service Platform
// Copyright (c) 2012 Samsung Electronics Co., Ltd.
//
// Licensed under the Apache License, Version 2.0 (the License);
result r = pBuffer->Construct(size);
SysTryLog(NID_IO, r == E_SUCCESS, "Constructing pBuffer is failed.");
- pBuffer->SetArray((const byte*)pStr, 0, size);
+ r = pBuffer->SetArray((const byte*)pStr, 0, size);
+ SysTryLog(NID_IO, r == E_SUCCESS, "SetArray()for ByteBuffer is failed.");
+
pBuffer->Flip();
pMap->Add(new (std::nothrow) String(pKey), pBuffer);