[Issue#] N/A
[Problem] N/A
[Cause] N/A
[Solution] Add exception case of NULL is returned from UI Process
In this case, simple pass NULL to plugin
[SCMRequest] N/A
Change-Id: Id907799a98b48c116511765dfb87c584d4fd3045
if (bodyWKString) {
WKRelease(bodyWKString);
}
- std::string retString = toString(static_cast<WKStringRef>(retWKType));
- WKRelease(retWKType);
-
- return strdup(retString.c_str());
+ if (retWKType) {
+ std::string retString = toString(static_cast<WKStringRef>(retWKType));
+ WKRelease(retWKType);
+ return strdup(retString.c_str());
+ } else {
+ return NULL;
+ }
+ return NULL;
}