https://issues.apache.org/bugzilla/show_bug.cgi?id=47271



--- Comment #3 from Wes <[email protected]> 2009-08-31 08:17:46 PDT ---
Adding baseIndex != istd (as Antony mentioned) stops the infinite recursion. It
throws a null exception later in uncompressCHP, since parentCHP is null, which
is easier to handle--even though it doesn't successfully extract the text. 

I added this, which made it work for my purposes (text extraction only):
          if(baseIndex != NIL_STYLE)
          {

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

          }
          if(parentCHP != null)
          {
             chp =
(CharacterProperties)CharacterSprmUncompressor.uncompressCHP(parentCHP, chpx,
0);
          }

Thanks for the useful library, by the way.

-- 
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to