From ebe63dcaf2b25e1da7101ff1a8af046605af1c50 Mon Sep 17 00:00:00 2001 From: "Andreas L. Delmelle" Date: Thu, 26 Nov 2015 16:53:00 +0000 Subject: [PATCH] FOP-2455b - Applied updated patch in addition to the original one (see: r1716732) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1716743 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/afp/AFPResourceInfo.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/java/org/apache/fop/afp/AFPResourceInfo.java b/src/java/org/apache/fop/afp/AFPResourceInfo.java index b70207b44..39c270054 100644 --- a/src/java/org/apache/fop/afp/AFPResourceInfo.java +++ b/src/java/org/apache/fop/afp/AFPResourceInfo.java @@ -158,10 +158,10 @@ public class AFPResourceInfo { } AFPResourceInfo ri = (AFPResourceInfo)obj; - return (uri != null && uri.equals(ri.uri)) - && (imageDimension == ri.imageDimension || imageDimension != null && imageDimension.equals(ri.imageDimension)) - && (name != null && name.equals(ri.name)) - && (level != null && level.equals(ri.level)); + return (uri == ri.uri || uri != null && uri.equals(ri.uri)) + && (imageDimension == ri.imageDimension ||imageDimension != null && imageDimension.equals(ri.imageDimension)) + && (name == ri.name ||name != null && name.equals(ri.name)) + && (level == ri.level ||level != null && level.equals(ri.level)); } /** {@inheritDoc} */ -- 2.39.5