[ 
https://issues.apache.org/jira/browse/PDFBOX-4892?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17301257#comment-17301257
 ] 

Tilman Hausherr commented on PDFBOX-4892:
-----------------------------------------

{noformat}
-        if (dict.getDictionaryObject(COSName.WIDTHS) != null || 
dict.containsKey(COSName.MISSING_WIDTH))
+        if (dict.containsKey(COSName.WIDTHS) || 
dict.containsKey(COSName.MISSING_WIDTH))
{noformat}
In one of the files, the /WIDTHS entry exists but it's null.

> Improve code quality (4)
> ------------------------
>
>                 Key: PDFBOX-4892
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4892
>             Project: PDFBox
>          Issue Type: Improvement
>    Affects Versions: 2.0.20
>            Reporter: Tilman Hausherr
>            Priority: Minor
>
> This is a longterm issue for the task to improve code quality, by using the 
> [SonarQube report|https://sonarcloud.io/project/issues?id=pdfbox-reactor], 
> hints in different IDEs, the FindBugs tool and other code quality tools.
> This is a follow-up of PDFBOX-4071, which was getting too long.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to