Fix the boiler plate codes
[platform/framework/native/appfw.git] / src / app / FApp_AppArg.cpp
index f1796ba..9183760 100755 (executable)
@@ -1,5 +1,4 @@
 //
-// Open Service Platform
 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
 //
 // Licensed under the Apache License, Version 2.0 (the License);
@@ -443,7 +442,9 @@ BundleIterFnCb(const char* pKey, const int type, const bundle_keyval_t* pVal, vo
                                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);