[Demonstration 1]

[Buggy Method]
void bindScrService(ScrService svc) {
    this.scrService = svc;
}

[Buggy Hunk]
void bindScrService(ScrService svc) {

[Patch]
protected void bindScrService(ScrService svc) {

[Demonstration 2]

[Buggy Method]
@Override
public void onSaveInstanceState(Bundle outState) {
    super.onSaveInstanceState(outState);
    if (mArtistAdapter != null) {
        outState.putParcelableArrayList(SAVE_ARTISTS_KEY, mArtistAdapter.getArtists());
        outState.putString(SAVE_LAST_QUERY_KEY, lastQuery);
    }
}

[Buggy Hunk]
if (mArtistAdapter != null) {

[Patch]
if (mArtistAdapter != null && !mArtistAdapter.isEmpty()) {

[Demonstration 3]

[Buggy Method]
@Override
public void deleteChapter(String chapterId) {
    if (chapters == null) {
        int index = -1;
        for (int i = 0; i < chapters.size(); i++) {
            if (chapters.get(i).getId() != null && chapters.get(i).getId().equals(chapterId)) {
                index = i;
                break;
            }
        }
        if (index != -1)
            chapters.remove(index);
    }
}

[Buggy Hunk]
if( chapters == null ) {

[Patch]
if( chapters != null ) {