Skip to content

Commit 49dcef1

Browse files
committed
DELIA-66586: WPEFramework crash with signature "WPEFramework::Plugin::Packager::Deinitialize"
Reason for Change: Fixed the packager plugin failed crash issue. Test Procedure: Refer the ticket Priority: P1 Signed-off-by: svinay647 <[email protected]>
1 parent 875fb4e commit 49dcef1

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Packager/Packager.cpp

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,17 @@ namespace {
7373
{
7474
ASSERT(_service == service);
7575

76-
_service->Unregister(&_notification);
76+
if (_service != nullptr) {
77+
_service->Unregister(&_notification);
78+
}
7779

78-
if (_implementation->Release() != Core::ERROR_DESTRUCTION_SUCCEEDED) {
80+
if (_implementation != nullptr && _implementation->Release() != Core::ERROR_DESTRUCTION_SUCCEEDED) {
7981

8082
ASSERT(_connectionId != 0);
8183

82-
RPC::IRemoteConnection* connection(_service->RemoteConnection(_connectionId));
84+
if (_service != nullptr) {
85+
RPC::IRemoteConnection* connection(_service->RemoteConnection(_connectionId));
86+
}
8387

8488
// The process can disappear in the meantime...
8589
if (connection != nullptr) {

0 commit comments

Comments
 (0)