DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24705>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24705

getTraitAsInteger doesnt handle nulls

           Summary: getTraitAsInteger doesnt handle nulls
           Product: Fop
           Version: 1.0dev
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: general
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


When a Trait which is an Integer is requested on a area using 
Area.getTraitAsInteger an exception is thrown if that trait just happens not 
to be present for the block in question. Instead of throwing an exception the 
method should check for Null and return 0.

I have attached a patch for this

Reply via email to