Skip to content

Commit

Permalink
Fix NPE when user trying to re-Add bookmark
Browse files Browse the repository at this point in the history
(reference #65)
  • Loading branch information
piotrzarzycki21 committed Nov 20, 2024
1 parent 6f03308 commit 1bf5d24
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@ package mediator.bookmarks
{
this.view.refreshButton.removeEventListener(MouseEvent.CLICK, onRefreshServersListClick);
}

if (this.view.addBookmark)
{
view.addBookmark.removeEventListener(MouseEvent.CLICK, onAddBookmarkClick);
}

this.view["currentState"] = BOOKMARKS_VIEW_STATE;

cleanUpBookmarksList();
Expand Down

0 comments on commit 1bf5d24

Please sign in to comment.