We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 875fb4e commit 49dcef1Copy full SHA for 49dcef1
Packager/Packager.cpp
@@ -73,13 +73,17 @@ namespace {
73
{
74
ASSERT(_service == service);
75
76
- _service->Unregister(&_notification);
+ if (_service != nullptr) {
77
+ _service->Unregister(&_notification);
78
+ }
79
- if (_implementation->Release() != Core::ERROR_DESTRUCTION_SUCCEEDED) {
80
+ if (_implementation != nullptr && _implementation->Release() != Core::ERROR_DESTRUCTION_SUCCEEDED) {
81
82
ASSERT(_connectionId != 0);
83
- RPC::IRemoteConnection* connection(_service->RemoteConnection(_connectionId));
84
85
+ RPC::IRemoteConnection* connection(_service->RemoteConnection(_connectionId));
86
87
88
// The process can disappear in the meantime...
89
if (connection != nullptr) {
0 commit comments