Skip to content

Conversation

jcfr
Copy link
Contributor

@jcfr jcfr commented Sep 1, 2025

This prevents potential crashes or undefined behavior when a null object is passed to the method.


Note

For reference, those patches were developed in the context of the commontk/PythonQt fork.

Cherry picked from commits commontk/PythonQt@751ec46a3

This prevents potential crashes or undefined behavior
when a null object is passed to the method.

(cherry picked from commit commontk/PythonQt@751ec46)
Comment on lines +1563 to +1566
if (o == nullptr)
{
return;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The formatting does not match the rest of the code. I will merge as is to avoid further merge problems - at some point, when the merges are done, #265 will be merged in some form, would be good to synchronize this with the commontk version then.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for pointing this out. And very soon, the commontk fork will be aligned with upstream 🤞

@mrbean-bremen mrbean-bremen merged commit e32ca10 into MeVisLab:master Sep 1, 2025
19 checks passed
@jcfr jcfr deleted the backport-commontk/addDecorators-check-for-null branch September 1, 2025 06:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants