Skip to content

Commit

Permalink
Merge pull request #6798 from Tribler/fix/6684
Browse files Browse the repository at this point in the history
Add null check to confirm_clicked_callback
  • Loading branch information
drew2a authored Mar 3, 2022
2 parents 9fe719e + 0de6d5a commit 0dbd96f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ def on_confirm_clicked(self, checked):
channel_id = self.get_selected_channel_id()
if channel_id is None:
return
self.confirm_clicked_callback(channel_id)
if self.confirm_clicked_callback:
self.confirm_clicked_callback(channel_id)
self.close_dialog()

def on_channel_contents(self, response, channel_id):
Expand Down

0 comments on commit 0dbd96f

Please sign in to comment.