Prevent null pointer access
Thanks to Ingo for fixing the segfault.
This commit is contained in:
@@ -469,7 +469,9 @@ public:
|
||||
hListener->setObservable(nullptr);
|
||||
}
|
||||
hListener = h;
|
||||
h->setObservable(this);
|
||||
if (h) {
|
||||
h->setObservable(this);
|
||||
}
|
||||
}
|
||||
void setAutoCamListener (AutoCamListener* acl) override
|
||||
{
|
||||
|
Reference in New Issue
Block a user