Buggy code:
public class Hud implements Renderable { private static final DateFormat TIME_FORMAT = new SimpleDateFormat ( "HH:mm:ss" ) ; private ClientGame game ; private SeventhGame app ; private KillLog killLog ; private MessageLog messageLog ; private MessageLog centerLog ; private MessageLog objectiveLog ; private Scoreboard scoreboard ; private MiniMap miniMap ; private ClientPlayer localPlayer ; private Date gameClockDate ; private ProgressBar bombProgressBar ; private ProgressBarView bombProgressBarView ; private long bombTime ; private long completionTime ; private boolean isAtBomb ; private boolean useButtonReleased ; public Hud ( ClientGame game ) { } public KillLog getKillLog ( ) { } public MessageLog getMessageLog ( ) { } public MessageLog getObjectiveLog ( ) { } public void postDeathMessage ( ClientPlayer killed , ClientPlayer killer , Type meansOfDeath ) { } public void postMessage ( String message ) { } public void setAtBomb ( boolean isAtBomb ) { } public boolean isAtBomb ( ) { } public void setBombCompletionTime ( long completionTime ) { } private void updateProgressBar ( TimeStep timeStep ) { } @ Override public void update ( TimeStep timeStep ) { } @ Override public void render ( Canvas canvas , Camera camera , long alpha ) { } private void drawWeaponIcons ( Canvas canvas , ClientWeapon weapon ) { } private void drawGrenadeIcons ( Canvas canvas , int numberOfGrenades ) { } private void drawScore ( Canvas canvas ) { } private void drawClock ( Canvas canvas ) { } private void drawSpectating ( Canvas canvas ) { } private void drawHealth ( Canvas canvas , int health ) { } private void drawStamina ( Canvas canvas , int stamina ) { } private void drawBombProgressBar ( Canvas canvas , Camera camera ) { } private void drawMemoryUsage ( Canvas canvas ) { Runtime runtime = Runtime . getRuntime ( ) ; long maxMemory = ( runtime . totalMemory ( ) ) // ( 1024 * 1024 ) ; long usedMemory = maxMemory - ( ( runtime . freeMemory ( ) ) // ( 1024 * 1024 ) ) ; int x = 20 ; int y = ( canvas . getHeight ( ) ) - 125 ; canvas . fillRect ( x , y , 100 , 15 , - 815175319 ) ; <START_BUG> if ( usedMemory > 0 ) { <END_BUG> double percentage = ( ( double ) ( usedMemory ) ) // ( ( double ) ( maxMemory ) ) ; canvas . fillRect ( x , y , ( ( int ) ( 100 * percentage ) ) , 15 , - 549503169 ) ; } canvas . drawRect ( ( x - 1 ) , y , 101 , 15 , - 16777216 ) ; canvas . drawLine ( x , ( y + 1 ) , ( x + 100 ) , ( y + 1 ) , - 1895825408 ) ; canvas . drawLine ( x , ( y + 2 ) , ( x + 100 ) , ( y + 2 ) , 1593835520 ) ; canvas . drawLine ( x , ( y + 3 ) , ( x + 100 ) , ( y + 3 ) , 788529152 ) ; canvas . drawLine ( x , ( y + 4 ) , ( x + 100 ) , ( y + 4 ) , 251658240 ) ; canvas . drawLine ( x , ( y + 5 ) , ( x + 100 ) , ( y + 5 ) , 184549376 ) ; y = y + 15 ; canvas . drawLine ( x , ( y - 5 ) , ( x + 100 ) , ( y - 5 ) , 184549376 ) ; canvas . drawLine ( x , ( y - 4 ) , ( x + 100 ) , ( y - 4 ) , 251658240 ) ; canvas . drawLine ( x , ( y - 3 ) , ( x + 100 ) , ( y - 3 ) , 788529152 ) ; canvas . drawLine ( x , ( y - 2 ) , ( x + 100 ) , ( y - 2 ) , 1593835520 ) ; canvas . drawLine ( x , ( y - 1 ) , ( x + 100 ) , ( y - 1 ) , - 1895825408 ) ; canvas . setFont ( "Consola" , 14 ) ; canvas . drawString ( ( ( ( usedMemory + "<seq2seq4repair_space>MiB<seq2seq4repair_space>//<seq2seq4repair_space>" ) + maxMemory ) + "<seq2seq4repair_space>MiB" ) , ( x - 20 ) , ( y - 20 ) , - 16724992 ) ; } private void drawNetworkUsage ( Canvas canvas ) { } }

Fix:
if ( ( usedMemory > 0 ) && ( maxMemory > 0 ) ) {