[Demonstration 1]

[Buggy Method]
public void commit(String message) throws IOException {
    if (current.getType() == CurrentState.Type.BRANCH) {
        Hash tree = createCommitTree();
        Commit commit = new Commit.Builder().setTree(tree).addParent(current.getCommit()).setAuthor(getAuthor()).setTimeCurrent().setMessage(message).create();
        Hash hash = storage.put(commit);
        CurrentState newCurrent = CurrentState.newBranch(hash, current.getBranch());
        setCurrent(newCurrent);
        branches.put(newCurrent.getBranch(), new Branch(newCurrent.getCommit()));
    } else
        throw new CommitException(current);
}

[Buggy Hunk]
.setAuthor(getAuthor())

[Patch]
.setAuthor(GlobalAuthor.isConfigPresent() ? new GlobalAuthor().getAuthor() : getAuthor())

[Demonstration 2]

[Buggy Method]
private void showExtFiles() {
    if (sdCardPath != null) {
        List<FileItem> extList = directoryFiles(sdCardPath, image);
        if (extList == null || extList.size() == 0) {
            extList = new ArrayList<FileItem>();
            FileItemAdapter localAdapter = new FileItemAdapter(listViewListener.getMainContext(), R.layout.file_directory, extList);
            localFiles.setAdapter(localAdapter);
            TextView tip = new TextView(listViewListener.getMainContext(), null);
            tip.setText("再怎么看也没有了");
            outFiles.setEmptyView(tip);
            return;
        }
        if (extList != null && extList.size() > 0) {
            FileItemAdapter extAdapter = new FileItemAdapter(listViewListener.getMainContext(), R.layout.file_directory, extList);
            outFiles.setAdapter(extAdapter);
        }
    }
}

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

[Patch]
if(sdCardPath != null && !sdCardPath.equals("")) {

[Demonstration 3]

[Buggy Method]
protected void onHideProgress(Object tag) {
    if (mMvpView != null) {
        mMvpView.hideProgress(tag);
    }
}

[Buggy Hunk]
protected void onHideProgress(Object tag) {

[Patch]
public void onHideProgress(Object tag) {