[Demonstration 1]

[Buggy Method]
public static PropertyViewWrapper getSimplePropertyViewWrapper(String propertyKey, CustomGetterMethod getterMethod, CustomSetterMethod setterMethod, View view, Object object, Method getter, Method setter) {
    if (getterMethod == null)
        throw new GetterMethodNullException();
    IViewBinder iViewBinder = getCustomViewWrapper(getterMethod.value());
    if (iViewBinder != null) {
        PropertyViewWrapper propertyViewWrapper = new MethodPropertyViewWrapper(iViewBinder, view, object, propertyKey, getter, setter);
        setConversion(null, setterMethod.convertToObject(), getterMethod.convertToUI(), propertyViewWrapper);
        return propertyViewWrapper;
    }
    return null;
}

[Buggy Hunk]
setConversion(null, setterMethod.convertToObject(), getterMethod.convertToUI(), propertyViewWrapper);

[Patch]
setConversion(null, setterMethod == null ? null : setterMethod.convertToObject(), getterMethod.convertToUI(), propertyViewWrapper);

[Demonstration 2]

[Buggy Method]
public void notification(NotificationManager mNotificationManager, int notificationId) {
    // Builder for Notification
    NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(getActivity());
    //Notification options setup
    mBuilder.setContentTitle(getString(R.string.app_name));
    mBuilder.setContentText(getString(R.string.notification_txt));
    mBuilder.setAutoCancel(false);
    mBuilder.setSmallIcon(getNotificationIcon(mBuilder));
    // Creates a specific Intent that open a specific activity. MainActivity in this case.
    Intent resultIntent = new Intent(getActivity(), MainActivity.class);
    resultIntent.putExtra("FRAGMENT_KEY", 1);
    TaskStackBuilder stackBuilder = TaskStackBuilder.create(getActivity());
    stackBuilder.addParentStack(MainActivity.class);
    //Adds Intent at the top of stack
    stackBuilder.addNextIntent(resultIntent);
    PendingIntent resultPendingIntent = stackBuilder.getPendingIntent(0, PendingIntent.FLAG_UPDATE_CURRENT);
    mBuilder.setContentIntent(resultPendingIntent);
    mNotificationManager = (NotificationManager) getActivity().getSystemService(getActivity().NOTIFICATION_SERVICE);
    //show Notification with a specific id that keep track of the Notification
    mNotificationManager.notify(notificationId, mBuilder.build());
}

[Buggy Hunk]
resultIntent.putExtra("FRAGMENT_KEY", 1);

[Patch]
resultIntent.putExtra(MainActivity.FRAGMENT_INTENT_KEY, 1);

[Demonstration 3]

[Buggy Method]
@Override
public void update() {
    timer++;
    if (timer == origTimer * FRAMES_PER_SECOND) {
        if (haveCollided())
            throw new GameOverException();
        circle.setFrame(0, 0, 0, 0);
    } else {
        double alpha = 1 + (timer / origTimer * FRAMES_PER_SECOND);
        double x = circle.getX();
        double y = circle.getY();
        double r = circle.getWidth();
        double centerX = x + r / 2;
        double centerY = y - r / 2;
        r = r * alpha;
        x = centerX - r;
        y = centerY + r;
        circle.setFrame(x, y, r, r);
    }
}

[Buggy Hunk]
public void update() {

[Patch]
public void update() throws GameOverException {