[Demonstration 1]

[Buggy Method]
private boolean isGooglePlayServicesAvailable() {
    GoogleApiAvailability googleApiAvailability = GoogleApiAvailability.getInstance();
    int status = googleApiAvailability.isGooglePlayServicesAvailable(this);
    Log.i(TAG, "play service status " + status);
    if (ConnectionResult.SUCCESS == status) {
        return true;
    } else {
        /*googleApiAvailability.getErrorDialog(thus, status, 0).show();*/
        Toast.makeText(this, status, Toast.LENGTH_SHORT).show();
        return false;
    }
}

[Buggy Hunk]
Toast.makeText(this, status, Toast.LENGTH_SHORT).show();

[Patch]
Toast.makeText(getApplicationContext(), "Google play service is not found", Toast.LENGTH_SHORT).show();

[Demonstration 2]

[Buggy Method]
@Override
public boolean isAvailable() {
    return Bukkit.getPluginManager().getPlugin("LWC") != null;
}

[Buggy Hunk]
return Bukkit.getPluginManager().getPlugin("LWC") != null;

[Patch]
return protectionGetOwnerMethod != null;

[Demonstration 3]

[Buggy Method]
public String getUsernameFromToken(String token) {
    String username;
    try {
        final Claims claims = getClaimsFromToken(token);
        username = claims.getSubject();
    } catch (Exception e) {
        username = null;
    }
    return username;
}

[Buggy Hunk]
} catch (Exception e) {

[Patch]
} catch (NullPointerException e) {