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 52664] An incomplete fix for the NPE bug in MAPIMessage.java
Date Wed, 15 Feb 2012 05:54:35 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=52664

lianggt08@sei.pku.edu.cn changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW

--- Comment #2 from lianggt08@sei.pku.edu.cn 2012-02-15 05:54:35 UTC ---
You have checked a wrong code location. Please check the line 454 of the method
"has7BitEncodingStrings", not the method "set7BitEncoding". 


Line 454 of the method "has7BitEncodingStrings()".



public boolean has7BitEncodingStrings() {
      for(Chunk c : mainChunks.getAll()) {
         if(c instanceof StringChunk) {
            if( ((StringChunk)c).getType() == Types.ASCII_STRING ) {
               return true;
            }
         }
      }
[Line 454]      for(Chunk c : nameIdChunks.getAll()) {
         if(c instanceof StringChunk) {
            if( ((StringChunk)c).getType() == Types.ASCII_STRING ) {
               return true;
            }
         }
      }
      for(RecipientChunks rc : recipientChunks) {
         for(Chunk c : rc.getAll()) {
            if(c instanceof StringChunk) {
               if( ((StringChunk)c).getType() == Types.ASCII_STRING ) {
                  return true;
               }
            }
         }
      }
      return false;
   }

-- 
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


Mime
View raw message