if (chpx != null && tpt.isIndexInTable( chpx.getStartBytes(), chpx.getEndBytes() )) {
_textRuns.add(chpx);
} else {
- logger.log( POILogger.WARN, "CHPX [",
- chpx.getStartBytes(), "; ", chpx.getEndBytes(),
- ") (bytes) doesn't have corresponding text pieces "
- + "and will be skipped" );
+ if ( chpx != null )
+ logger.log( POILogger.WARN, "CHPX [",
+ chpx.getStartBytes(), "; ", chpx.getEndBytes(),
+ ") (bytes) doesn't have corresponding text pieces "
+ + "and will be skipped" );
}
}
}
if (papx != null && tpt.isIndexInTable( papx.getStartBytes(), papx.getEndBytes() )) {
_paragraphs.add(papx);
} else {
- logger.log( POILogger.WARN, "PAPX [", papx.getStartBytes(),
- "; ", papx.getEndBytes(),
- ") (bytes) doesn't have corresponding text pieces "
- + "and will be skipped" );
+ if ( papx != null )
+ logger.log( POILogger.WARN, "PAPX [",
+ papx.getStartBytes(), "; ", papx.getEndBytes(),
+ ") (bytes) doesn't have corresponding text pieces "
+ + "and will be skipped" );
}
}
}