Skip to content

Commit d6b3b6e

Browse files
Return void object when RESTProcessPtr is null.
1 parent 17048ec commit d6b3b6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

RESTProcess_epilogue.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ namespace classdesc
274274
if (ptr)
275275
return rProcess(*ptr, remainder, arguments);
276276
else
277-
return {};
277+
return std::make_shared<RESTProcessVoid>();
278278
}
279279

280280
template <class E>
@@ -293,7 +293,7 @@ namespace classdesc
293293
if (auto p=ptr.lock())
294294
return rProcess(*p, remainder, arguments);
295295
else
296-
return {};
296+
return std::make_shared<RESTProcessVoid>();
297297
}
298298

299299
inline RPPtr RESTProcess_t::process(const std::string& query, const REST_PROCESS_BUFFER& jin)

0 commit comments

Comments
 (0)