You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ti...@apache.org on 2026/08/25 12:30:10 UTC
svn commit: r1937404 - pdfbox/branches/3.0/debugger/src/main/java/org/apache/pdfbox/debugger/pagepane
Author: tilman
Date: Tue Aug 25 12:30:10 2026
New Revision: 1937404
Log:
PDFBOX-6240: avoid NPE, as suggested by copilot
Modified:
pdfbox/branches/3.0/debugger/src/main/java/org/apache/pdfbox/debugger/pagepane/PagePane.java
Modified: pdfbox/branches/3.0/debugger/src/main/java/org/apache/pdfbox/debugger/pagepane/PagePane.java
==============================================================================
--- pdfbox/branches/3.0/debugger/src/main/java/org/apache/pdfbox/debugger/pagepane/PagePane.java Tue Aug 25 12:25:29 2026 (r1937403)
+++ pdfbox/branches/3.0/debugger/src/main/java/org/apache/pdfbox/debugger/pagepane/PagePane.java Tue Aug 25 12:30:10 2026 (r1937404)
@@ -524,7 +524,7 @@ public class PagePane implements ActionL
{
PDAnnotation annotation = entry.getKey();
PDRectangle rectangle = annotation.getRectangle();
- if (rectangle.contains(x1, y1))
+ if (rectangle != null && rectangle.contains(x1, y1))
{
String s = entry.getValue();
if (annotation instanceof PDAnnotationLink && s.startsWith("URI: "))