From 992f6c57aaff9bf2d18dff1266b5854c441f056b Mon Sep 17 00:00:00 2001 From: hyunho Date: Wed, 21 Aug 2019 11:30:53 +0900 Subject: [PATCH] Modify base_frame_create_window API validation Some frame components do not want to share it's raw handle. ex) C# frame components Change-Id: I2624ea0e98a13cd6b1dab0e4d47629579b06a233 Signed-off-by: hyunho --- component_based/base/stub.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/component_based/base/stub.cc b/component_based/base/stub.cc index 8e2690a..78ce7fb 100644 --- a/component_based/base/stub.cc +++ b/component_based/base/stub.cc @@ -508,7 +508,7 @@ class StubServiceComponent : public component_based::ServiceComponent { extern "C" EXPORT_API int base_frame_create_window(frame_window_h* handle, int id, void* raw) { - if (handle == nullptr || raw == nullptr) { + if (handle == nullptr) { LOGE("Invalid parameter"); return COMPONENT_ERROR_INVALID_PARAMETER; } -- 2.34.1