You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by Tilman Hausherr <TH...@t-online.de> on 2015/06/25 19:41:26 UTC
r1687587
I can't access JIRA currently, and at least one other website... don't
know if "the internet stood still", or just my router needs a reboot.
Just wanted to mention that the effect ("null" symbol not appearing, pre
commit) can be seen with the file of PDFBOX-2158.pdf, at
Root/Pages/Kids/[0]/Resources/XObject/X0/Decode/[15]
. The reason is that COSArray.getObject() returns null for COSNull.
(Same for COSDictionary.getDictionaryObject())
Tilman
Am 25.06.2015 um 19:21 schrieb tilman@apache.org:
> Author: tilman
> Date: Thu Jun 25 17:21:47 2015
> New Revision: 1687587
>
> URL: http://svn.apache.org/r1687587
> Log:
> PDFBOX-2530: treat null like COSNull
>
> Modified:
> pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/gui/PDFTreeCellRenderer.java
>
> Modified: pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/gui/PDFTreeCellRenderer.java
> URL: http://svn.apache.org/viewvc/pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/gui/PDFTreeCellRenderer.java?rev=1687587&r1=1687586&r2=1687587&view=diff
> ==============================================================================
> --- pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/gui/PDFTreeCellRenderer.java (original)
> +++ pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/gui/PDFTreeCellRenderer.java Thu Jun 25 17:21:47 2015
> @@ -149,7 +149,7 @@ public class PDFTreeCellRenderer extends
> {
> result = ((COSName) nodeValue).getName();
> }
> - else if (nodeValue instanceof COSNull || nodeValue == null))
> + else if (nodeValue instanceof COSNull || nodeValue == null)
> {
> result = "";
> }
> @@ -252,7 +252,7 @@ public class PDFTreeCellRenderer extends
> {
> return ICON_NAME;
> }
> - else if (nodeValue instanceof COSNull || nodeValue == null))
> + else if (nodeValue instanceof COSNull || nodeValue == null)
> {
> return ICON_NULL;
> }
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org