Buggy code:
public class UserPanel extends JPanel { private static final long serialVersionUID = 1L ; private PortalApp m_app ; private BufferedImage m_clippedImg = null ; private Image m_lastUserImg = null ; private String m_userName ; private Image m_userImg = null ; private boolean m_hovering = false ; private int m_hoverCircleWidth = PortalConstants . USER_ICON_WIDTH ; private int m_hoverCircleHeight = PortalConstants . USER_ICON_HEIGHT ; private TransferTracker m_currentTransfer = null ; private float m_alpha = 0.0F ; private Timer m_hoverRepaintTimer ; private User m_user ; public UserPanel ( PortalApp app , User u ) { } public void updateClippedImage ( Graphics2D g2d , Image m_userImg2 ) { } @ Override public void paintComponent ( Graphics g ) { RenderUtils . s_setupFineRender ( g ) ; super . paintComponent ( g ) ; Graphics2D g2d = ( ( Graphics2D ) ( g ) ) ; if ( ( m_alpha ) < 1 ) { AlphaComposite ac = AlphaComposite . getInstance ( AlphaComposite . SRC_OVER , Math . max ( m_alpha , 0 ) ) ; g2d . setComposite ( ac ) ; } int halfWidth = ( ( int ) ( ( getWidth ( ) ) * 0.5F ) ) ; g2d . setColor ( Color . BLACK ) ; String text = m_userName ; if ( ( text . length ( ) ) > ( PortalConstants . USER_NAME_MAX_CHARS ) ) { text = ( text . substring ( 0 , ( ( PortalConstants . USER_NAME_MAX_CHARS ) - 3 ) ) ) + "..." ; } FontMetrics fontMetrics = g2d . getFontMetrics ( ) ; int textWidth = fontMetrics . stringWidth ( text ) ; g2d . setColor ( FONT_COLOR ) ; g2d . setFont ( USER_FONT ) ; g2d . drawString ( text , ( halfWidth - ( textWidth > > 1 ) ) , ( ( ( ( PortalConstants . USER_ICON_TOP_SPACE ) + ( PortalConstants . USER_ICON_HEIGHT ) ) + ( PortalConstants . USER_NAME_SPACING ) ) + ( PortalConstants . USER_NAME_LINE_HEIGHT ) ) ) ; BufferedImage icon = m_clippedImg ; if ( icon == null ) icon = PortalConstants . DEFAULT_USER_ICON ; int halfIconWidth = ( PortalConstants . USER_ICON_WIDTH ) > > 1 ; g2d . translate ( ( halfWidth - halfIconWidth ) , USER_ICON_TOP_SPACE ) ; g2d . setColor ( FILE_HOVER_COLOR ) ; if ( ( ( m_hoverCircleWidth ) > ( PortalConstants . USER_ICON_WIDTH ) ) || ( ( m_hoverCircleWidth ) > ( PortalConstants . USER_ICON_HEIGHT ) ) ) g2d . fillOval ( ( - ( ( ( m_hoverCircleWidth ) - ( PortalConstants . USER_ICON_WIDTH ) ) > > 1 ) ) , ( - ( ( ( m_hoverCircleHeight ) - ( PortalConstants . USER_ICON_HEIGHT ) ) > > 1 ) ) , m_hoverCircleWidth , m_hoverCircleHeight ) ; if ( ( m_currentTransfer ) != null ) { g2d . setColor ( TRANSFER_PROGRESS_COLOR ) ; int deg = ( ( int ) ( ( ( m_currentTransfer . getPercentage ( ) ) // 100 ) * 360 ) ) ; g2d . fillArc ( ( - ( ( ( PortalConstants . LOADING_ARC_RADIUS ) - ( PortalConstants . USER_ICON_WIDTH ) ) > > 1 ) ) , ( - ( ( ( PortalConstants . LOADING_ARC_RADIUS ) - ( PortalConstants . USER_ICON_HEIGHT ) ) > > 1 ) ) , LOADING_ARC_RADIUS , LOADING_ARC_RADIUS , 90 , ( - deg ) ) ; <START_BUG> if ( ( m_currentTransfer . getPercentage ( ) ) >= 100 ) { <END_BUG> m_currentTransfer = null ; } } if ( ( m_lastUserImg ) != ( m_userImg ) ) { updateClippedImage ( g2d , m_userImg ) ; m_lastUserImg = m_userImg ; } g2d . drawImage ( m_clippedImg , 0 , 0 , null ) ; } public void animateHoverCircleShrink ( ) { } public void animateHoverCircleGrow ( ) { } public void fadeIn ( ) { } public void fadeOut ( ) { } @ Override public Dimension getMinimumSize ( ) { } @ Override public Dimension getPreferredSize ( ) { } public class MyDragDropListener implements DropTargetListener { @ Override public void drop ( DropTargetDropEvent event ) { } @ Override public void dragEnter ( DropTargetDragEvent event ) { } @ Override public void dragExit ( DropTargetEvent event ) { } @ Override public void dragOver ( DropTargetDragEvent event ) { } @ Override public void dropActionChanged ( DropTargetDragEvent event ) { } } }

Fix:
if ( ( m_currentTransfer . getPercentage ( ) ) >= 99 ) {