-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[DragAndDrop] panic when dropping non-file objects #3596
Labels
Bug
Something isn't working
Comments
Fantastic catch! There's a PR up for another fix for DnD so I'll look at adding this tomorrow if you don't want to do it. |
Heya, I wasnt able to get to it today unfortunately 😕 |
Please try the above PR to see if this fixes your problem. If you are unsure how to do this, please follow this guide. Let us know how you get on 👍 |
Just tested it out, works great 👍
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Summary
A panic occurs when dropping a non-file object into the webview - for example a string or browser tab.
Details
internal/frontend/desktop/windows/frontend.go
on the call:
a nil value is returned with no error. Presumably because no value is actually available.
However this nil value is then used subsequently:
Upon Release() the program panics.
To Reproduce
Expected behaviour
Dropped non-file object should be disregarded
Screenshots
No response
Attempted Fixes
A simple nil check has alleviated the issue:
System Details
Additional context
No response
The text was updated successfully, but these errors were encountered: