Style is nullable attribute.
The other nullable attributes return error_none for null value.
Change-Id: Iadc20370ba0ad286348976bbedd902bbf2091515
Signed-off-by: hyunho <hhstark.kang@samsung.com>
Handle* p = static_cast<Handle*>(handle);
shared_ptr<Style> s = p->Get()->GetStyle();
- if (s.get() == nullptr) {
- LOGE("Style is null");
- return NOTI_EX_ERROR_INVALID_PARAMETER;
+ if (s == nullptr || s.get() == nullptr) {
+ LOGW("Style is null");
+ *style = nullptr;
+ return NOTI_EX_ERROR_NONE;
}
auto* ptr = new (std::nothrow) shared_ptr<Style>(new (std::nothrow) Style(*s));