[Demonstration 1]

[Buggy Method]
public List<Node> getAllNodesForMap(String mapname) {
    String query = "Select * FROM " + TABLE_NODES + " WHERE " + COLUMN_MAPNAME + "=\"" + mapname + "\"";
    SQLiteDatabase db = null;
    List<Node> nodeList = null;
    Cursor cursor = null;
    try {
        db = this.getReadableDatabase();
        nodeList = new ArrayList<Node>();
        cursor = db.rawQuery(query, null);
        if (cursor.moveToFirst()) {
            do {
                Map<String, String> flags = new HashMap<String, String>();
                flags.put("gateway", cursor.getString(cursor.getColumnIndexOrThrow(COLUMN_GATEWAY)));
                flags.put("client", cursor.getString(cursor.getColumnIndexOrThrow(COLUMN_CLIENT)));
                LatLng geo = new LatLng(Double.parseDouble(cursor.getString(cursor.getColumnIndexOrThrow(COLUMN_LAT))), Double.parseDouble(cursor.getString(cursor.getColumnIndexOrThrow(COLUMN_LNG))));
                Node node = new Node(new ArrayList<String>(1), mapname, cursor.getString(cursor.getColumnIndexOrThrow(COLUMN_NAME)), cursor.getString(cursor.getColumnIndexOrThrow(COLUMN_FIRMWARE)), flags, geo, cursor.getString(cursor.getColumnIndexOrThrow(COLUMN_ID)));
                Log.d("NodeDBHelper", "Node added to list of all nodes " + node.getId() + "/" + node.getName());
                nodeList.add(node);
            } while (cursor.moveToNext());
        }
    } finally {
        if (cursor != null) {
            cursor.close();
        }
        if (db != null) {
            db.close();
        }
    }
    return nodeList;
}

[Buggy Hunk]
cursor.getString(cursor.getColumnIndexOrThrow(COLUMN_ID)));

[Patch]
cursor.getString(cursor.getColumnIndexOrThrow(COLUMN_NODEID)));

[Demonstration 2]

[Buggy Method]
private void setWidgetInfo() {
    int parent = plugin.getWidgetParent();
    int child = plugin.getWidgetChild();
    if (parent == -1) {
        return;
    }
    Widget widget = client.getWidget(parent, (child == -1) ? 0 : child);
    if (widget == null) {
        return;
    }
    textLbl.setText("Text: " + widget.getText().trim());
    textColorLbl.setText("Text Color: " + widget.getTextColor());
    nameLbl.setText("Name: " + widget.getName().trim());
    modelLbl.setText("Model ID: " + widget.getModelId());
    textureLbl.setText("Texture ID: " + widget.getTextureId());
    typeLbl.setText("Type: " + widget.getType());
    contentTypeLbl.setText("Content Type: " + widget.getContentType());
}

[Buggy Hunk]
textureLbl.setText("Texture ID: " + widget.getTextureId());

[Patch]
textureLbl.setText("Texture ID: " + widget.getSpriteId());