GetMetaType() can return nullptr.
This patch adds to checking whether GetMetaType() return value is nullptr or not.
Change-Id: I8768bed1c7ed9ecd9b3ee024d2202543d4712327
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
const std::string& port, const std::string& arg) {
std::string code;
if (type.ToString() == "list" || type.ToString() == "array") {
- if (type.GetMetaType()->ToString() == "file") {
+ if (type.GetMetaType() != nullptr &&
+ type.GetMetaType()->ToString() == "file") {
code = ReplaceAll(CB_LIST_FILE_SET_PRIVATE_SHARING, {
{ "<PORT>", port },
{ "<ARG>", arg }