[Demonstration 1]

[Buggy Method]
@Override
public void onReceive(Context context, Intent intent) {
    int resultCode = intent.getIntExtra("resultCode", RESULT_CANCELED);
    if (resultCode == RESULT_OK) {
        String message = intent.getStringExtra("message");
        String userStatus = intent.getStringExtra("userStatus");
        if (userStatus != null) {
            if (userStatus.equalsIgnoreCase("confirmed")) {
                user.setStatus(User.Status.PASSENGER);
            } else if (userStatus.equalsIgnoreCase("denied")) {
                user.setStatus(User.Status.NO_RIDE);
                user.setRideId(null);
            }
        }
        user.flush();
        Toast.makeText(HomeActivity.this, message, Toast.LENGTH_LONG).show();
        rideListFragment.fetchAndPopulateRideList(user, true);
    }
}

[Buggy Hunk]
rideListFragment.fetchAndPopulateRideList(user, true);

[Patch]
rideListFragment.fetchAndPopulateRideList(user, false);

[Demonstration 2]

[Buggy Method]
public void addIdentifiedUser(int connectionID, int userID) {
    User identified = anonymousUsers.remove(connectionID);
    JsonObject userPosition = dataManager.get("User_" + userID + "_Position");
    JsonObject userStats = dataManager.get("User_" + userID + "_Stats");
    JsonObject userStatus = dataManager.get("User_" + userID + "_Status");
    JsonObject quests = dataManager.get("User_" + userID + "_Quests");
    identified.setMapID(userPosition.getInt("mapID"));
    identified.setPositionX(userPosition.getDouble("x"));
    identified.setPositionY(userPosition.getDouble("y"));
    identified.setName(userStats.getString("name"));
    identified.setOccupation(userStats.getInt("occupation"));
    identified.setDamage(userStats.getInt("dame"));
    identified.setDefense(userStats.getInt("defense"));
    identified.setSpeed(userStats.getInt("speed"));
    identified.setCurHP(userStatus.getInt("curHP"));
    identified.setCurMP(userStatus.getInt("curMP"));
    identified.setCurEXP(userStatus.getInt("curEXP"));
    identified.setMaxHP(userStatus.getInt("maxHP"));
    identified.setMaxMP(userStatus.getInt("maxMP"));
    identified.setMaxMP(userStatus.getInt("maxEXP"));
    JsonArray list = quests.getArray("list");
    for (int i = 0; i < list.size(); i++) {
        Quest q = new Quest();
        JsonObject obj = quests.getObject(list.getString(i));
        q.setID(obj.getInt("ID"));
        q.setStep(obj.getInt("Step"));
        q.setPercent(obj.getDouble("Percent"));
        q.setState(obj.getInt("State"));
        identified.addQuest(q.getID(), q);
    }
    identified.setId(userID);
    identifiedUsers.put(userID, identified);
}

[Buggy Hunk]
identified.setMaxMP(userStatus.getInt("maxEXP"));

[Patch]
identified.setMaxEXP(userStatus.getInt("maxEXP"));

[Demonstration 3]

[Buggy Method]
@EventHandler(priority = EventPriority.LOWEST)
public void onPlayerPreJoinEarly(LoginEvent e) {
    PendingConnection connection = e.getConnection();
    if (!connection.isOnlineMode()) {
        e.setCancelled(true);
        e.setCancelReason("Your account is not authenticated");
    } else if (connection.getUniqueId() == null || connection.getName() == null) {
        e.setCancelled(true);
        e.setCancelReason("Error in authentication");
    } else if (!e.isCancelled()) {
        ProxiedBubblePlayer data;
        try {
            data = getBungee().getBubblePlayer(connection.getUniqueId());
        } catch (Exception e1) {
            e.setCancelled(true);
            e.setCancelReason(ChatColor.RED + "Woops! " + e1.getClass().getName() + ": " + e1.getMessage());
            getBungee().getLogger().log(Level.WARNING, "Failed to load PlayerData: " + connection.getName());
            return;
        }
        data.setName(connection.getName());
        if (data.isBanned()) {
            e.setCancelled(true);
            String bantimer = data.getUnbanDate() == null ? "never" : DateUTIL.formatDateDiff(data.getUnbanDate().getTime());
            e.setCancelReason(String.format(BANMSG, data.getBanReason(), bantimer, data.getBannedBy()));
        } else if (getBungee().isLockdown() && !data.isAuthorized("lockdown.bypass")) {
            e.setCancelled(true);
            e.setCancelReason(getBungee().getLockdownmsg());
        } else if (!e.isCancelled()) {
            prequeed.put(connection.getUniqueId(), data);
        }
    }
}

[Buggy Hunk]
getBungee().getLogger().log(Level.WARNING, "Failed to load PlayerData: " + connection.getName());

[Patch]
getBungee().getLogger().log(Level.WARNING, "Failed to load PlayerData: " + connection.getName(), e1);