Seifeddine Dridi created FOP-2317:

             Summary: FOP warning causing a crash
                 Key: FOP-2317
             Project: Fop
          Issue Type: Bug
          Components: general
    Affects Versions: trunk
         Environment: Windows 7
            Reporter: Seifeddine Dridi
            Priority: Minor

<fo:table-cell width="" border-left="0.5pt green dashed">

FOP issues a warning because border-left has an invalid structure (the 
border-style should be placed before the border-color). 

In FObj.warnOnUnknownProperties(), there is a call to 
getAttributeNameForValue() to find the name of the attribute whose value is 
unknown, then it stumbles on the width="" property, which returns a null object 
when instantiated. And there goes a NPE which leads to a crash:

if (prop.equals(value)) {
    return attributeName;

I attached a patch which encloses the above code with a simple if-test.

This message was sent by Atlassian JIRA

Reply via email to