https://bz.apache.org/bugzilla/show_bug.cgi?id=57163

--- Comment #10 from Vladimir <[email protected]> ---
Proposed fix (add check for linkTable):

public void removeSheet(int sheetIndex) {
    ....


    if (linkTable != null) {
        // also tell the LinkTable about the removed sheet
        // +1 because we already removed it from the count of sheets!
        for(int i = sheetIndex+1;i < getNumSheets()+1;i++) {
            // also update the link-table as otherwise references might point
at invalid sheets
            linkTable.removeSheet(i);
        }
    }
}

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to