diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/TabComponent.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/TabComponent.java index dcd50b0fd..e0959d9c2 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/TabComponent.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/TabComponent.java @@ -231,10 +231,9 @@ public void mouseExited(MouseEvent e) @Override public void mouseReleased(MouseEvent e) { - e = convert(e); - if (e == null) - return; - + MouseEvent converted = convert(e); + if (converted != null) + e = converted; Objects.requireNonNull(getHandler()).mouseReleased(e); }