projects
/
platform
/
core
/
context
/
context-common.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
754701e
)
toGVariant returns NULL if the input vector is empty
18/114018/1
author
Mu-Woong Lee
<muwoong.lee@samsung.com>
Thu, 9 Feb 2017 13:53:47 +0000
(22:53 +0900)
committer
Mu-Woong Lee
<muwoong.lee@samsung.com>
Thu, 9 Feb 2017 13:53:47 +0000
(22:53 +0900)
Change-Id: Ie2c3e45e2286a6d41294bae431c095edf41428e5
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
src/shared/Tuple.cpp
patch
|
blob
|
history
diff --git
a/src/shared/Tuple.cpp
b/src/shared/Tuple.cpp
index
06f1b52
..
aea1050
100644
(file)
--- a/
src/shared/Tuple.cpp
+++ b/
src/shared/Tuple.cpp
@@
-116,6
+116,8
@@
GVariant* Tuple::toGVariant(Tuple& tuple)
GVariant* Tuple::toGVariant(std::vector<Tuple*>& tuples)
{
+ IF_FAIL_RETURN_TAG(!tuples.empty(), NULL, _W, "Empty");
+
GVariantBuilder builder;
g_variant_builder_init(&builder, G_VARIANT_TYPE_ARRAY);