Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed NULL pointer exception on connecting nodes (https://github.com/… #443

Closed
wants to merge 2 commits into from

Conversation

chateauferret
Copy link

/issues/441)

Moved the creation of the ProxyWidget in NodeGraphicsObject::embedQWidget() (line 84 ff.) out of the if { } block to ensure that it wouldn't be NULL when someone tried to dereference it. See issue #441. May be relevant also for #417 and #442.

chateauferret and others added 2 commits September 19, 2024 17:50
When assigning new pointer for _proxyWidget (issue paceholder#441), only do so if the pointer is NULL. Otherwise we repeatedly create new and leave the existing hanging if the method is called multiple times.
@chateauferret
Copy link
Author

Added null check (in my fork) around the line in question to avoid multiple allocations - see comment on #441.

@paceholder
Copy link
Owner

Fixed in master by checking for nullptr in void NodeGraphicsObject::updateQWidgetEmbedPos()

@paceholder paceholder closed this Oct 13, 2024
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.

3 participants