poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 47271] New: StyleSheet.createChp stack overflow - parent style description is itself
Date Wed, 27 May 2009 07:34:14 GMT

           Summary: StyleSheet.createChp stack overflow - parent style
                    description is itself
           Product: POI
           Version: 3.5-dev
          Platform: All
        OS/Version: Windows XP
            Status: NEW
          Severity: critical
          Priority: P2
         Component: HWPF
        AssignedTo: dev@poi.apache.org
        ReportedBy: adb@teamware.com

I have a document that gets stuck in createChp().  Debugging it reveals that in
createChp() the baseIndex is the same as the input param, istd and the
parentCHP is null, hence it loops approx 1021 times before it gives stack

Is the solution 

       if(baseIndex != NIL_STYLE)
           parentCHP = _styleDescriptions[baseIndex].getCHP();
           if(parentCHP == null && baseIndex != istd)
               parentCHP = _styleDescriptions[baseIndex].getCHP();

Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org

View raw message