NP check
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1144853 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b3c475a8df
commit
4a0c0f2898
@ -70,10 +70,11 @@ public final class OldCHPBinTable extends CHPBinTable
|
|||||||
if (chpx != null && tpt.isIndexInTable( chpx.getStartBytes(), chpx.getEndBytes() )) {
|
if (chpx != null && tpt.isIndexInTable( chpx.getStartBytes(), chpx.getEndBytes() )) {
|
||||||
_textRuns.add(chpx);
|
_textRuns.add(chpx);
|
||||||
} else {
|
} else {
|
||||||
logger.log( POILogger.WARN, "CHPX [",
|
if ( chpx != null )
|
||||||
chpx.getStartBytes(), "; ", chpx.getEndBytes(),
|
logger.log( POILogger.WARN, "CHPX [",
|
||||||
") (bytes) doesn't have corresponding text pieces "
|
chpx.getStartBytes(), "; ", chpx.getEndBytes(),
|
||||||
+ "and will be skipped" );
|
") (bytes) doesn't have corresponding text pieces "
|
||||||
|
+ "and will be skipped" );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -61,10 +61,11 @@ public final class OldPAPBinTable extends PAPBinTable
|
|||||||
if (papx != null && tpt.isIndexInTable( papx.getStartBytes(), papx.getEndBytes() )) {
|
if (papx != null && tpt.isIndexInTable( papx.getStartBytes(), papx.getEndBytes() )) {
|
||||||
_paragraphs.add(papx);
|
_paragraphs.add(papx);
|
||||||
} else {
|
} else {
|
||||||
logger.log( POILogger.WARN, "PAPX [", papx.getStartBytes(),
|
if ( papx != null )
|
||||||
"; ", papx.getEndBytes(),
|
logger.log( POILogger.WARN, "PAPX [",
|
||||||
") (bytes) doesn't have corresponding text pieces "
|
papx.getStartBytes(), "; ", papx.getEndBytes(),
|
||||||
+ "and will be skipped" );
|
") (bytes) doesn't have corresponding text pieces "
|
||||||
|
+ "and will be skipped" );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user