Skip to content

Commit

Permalink
Fix other review comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
raghucssit committed Jan 24, 2025
1 parent d502e84 commit 0b90e9b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public class PinViewHandler extends AbstractHandler {
private String fPinnedContextLabel = ""; //$NON-NLS-1$
private IPartListener2 fPartListener;
private static Set<IViewPart> pinned = new HashSet<>();
Image image;
private Image image;

public PinViewHandler() {
createPartListener();
Expand All @@ -71,7 +71,7 @@ public void partBroughtToTop(IWorkbenchPartReference partRef) {
@Override
public void partClosed(IWorkbenchPartReference partRef) {
IWorkbenchPart part = partRef.getPart(false);
if (!pinned.contains(part))
if (pinned == null || !pinned.contains(part))
return;
pinned.remove(part);
DebugEventFilterService.getInstance().removeDebugEventFilter(part);
Expand Down

0 comments on commit 0b90e9b

Please sign in to comment.