MAPIMessage: fix NPE in set7BitEncoding
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1171628 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a75bc22211
commit
6d080eb3bf
@ -413,11 +413,15 @@ public class MAPIMessage extends POIDocument {
|
|||||||
((StringChunk)c).set7BitEncoding(charset);
|
((StringChunk)c).set7BitEncoding(charset);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for(Chunk c : nameIdChunks.getAll()) {
|
|
||||||
if(c instanceof StringChunk) {
|
if (nameIdChunks!=null) {
|
||||||
((StringChunk)c).set7BitEncoding(charset);
|
for(Chunk c : nameIdChunks.getAll()) {
|
||||||
|
if(c instanceof StringChunk) {
|
||||||
|
((StringChunk)c).set7BitEncoding(charset);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for(RecipientChunks rc : recipientChunks) {
|
for(RecipientChunks rc : recipientChunks) {
|
||||||
for(Chunk c : rc.getAll()) {
|
for(Chunk c : rc.getAll()) {
|
||||||
if(c instanceof StringChunk) {
|
if(c instanceof StringChunk) {
|
||||||
|
Loading…
Reference in New Issue
Block a user