xl19870217 created PDFBOX-3847:
----------------------------------
Summary: code has bug
Key: PDFBOX-3847
URL: https://issues.apache.org/jira/browse/PDFBOX-3847
Project: PDFBox
Issue Type: Bug
Affects Versions: 2.0.4
Reporter: xl19870217
in {color:red} org.apache.pdfbox.rendering.PageDrawer.java{color}
// return border info. BorderStyle must be provided as parameter because
// method is not available in the base class
private AnnotationBorder getAnnotationBorder(PDAnnotation annotation,
PDBorderStyleDictionary borderStyle)
{
AnnotationBorder ab = new AnnotationBorder();
COSArray border = annotation.getBorder();
if (borderStyle == null)
{
{color:red} *// this code may throw NullPointerException*{color}
if (border.get(2) instanceof COSNumber)
{
ab.width = ((COSNumber) border.getObject(2)).floatValue();
}
if (border.size() > 3)
{
COSBase base3 = border.getObject(3);
if (base3 instanceof COSArray)
{
ab.dashArray = ((COSArray) base3).toFloatArray();
}
}
}
i can not find the pdf file that has this promble.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]