projects
/
profile
/
ivi
/
wrt-plugins-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
554d63b
)
return if gvariant is null
author
Kevron Rees
<kevron_m_rees@linux.intel.com>
Tue, 30 Jul 2013 23:39:33 +0000
(16:39 -0700)
committer
Kevron Rees
<kevron_m_rees@linux.intel.com>
Tue, 30 Jul 2013 23:39:33 +0000
(16:39 -0700)
src/Vehicle/JSVehicle.cpp
patch
|
blob
|
history
diff --git
a/src/Vehicle/JSVehicle.cpp
b/src/Vehicle/JSVehicle.cpp
index
394e979
..
104c73c
100644
(file)
--- a/
src/Vehicle/JSVehicle.cpp
+++ b/
src/Vehicle/JSVehicle.cpp
@@
-226,6
+226,9
@@
JSValueRef JSVehicle::supported(JSContextRef context,
GVariant * value = vehicle->listObjects();
+ if(!value)
+ return JSValueMakeUndefined(context);
+
gsize size;
std::string script;
std::string valStr = json_gvariant_serialize_data(value,&size);