From 39a5bd813d1c09cdc07a87f1f5664d1876e8210a Mon Sep 17 00:00:00 2001 From: hengsin Date: Thu, 11 May 2023 22:26:48 +0800 Subject: [PATCH] IDEMPIERE-5719 PackInHandler.dumpUnresolvedElements include elements that doesn't have any unresolve properties (#1832) --- .../src/org/adempiere/pipo2/PackInHandler.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/org.adempiere.pipo/src/org/adempiere/pipo2/PackInHandler.java b/org.adempiere.pipo/src/org/adempiere/pipo2/PackInHandler.java index 50744f78c0..802452fb8c 100644 --- a/org.adempiere.pipo/src/org/adempiere/pipo2/PackInHandler.java +++ b/org.adempiere.pipo/src/org/adempiere/pipo2/PackInHandler.java @@ -483,6 +483,9 @@ public class PackInHandler extends DefaultHandler { if (!entry.startElement) { Element e = entry.element; + if (e.unresolved == null || e.unresolved.length() == 0) + continue; + StringBuilder s = new StringBuilder(e.qName); s.append(" ["); Set keys = e.properties.keySet(); @@ -498,8 +501,7 @@ public class PackInHandler extends DefaultHandler { i++; } s.append("]"); - if (e.unresolved != null && e.unresolved.length() > 0) - s.append(" unresolved ").append(e.unresolved); + s.append(" unresolved ").append(e.unresolved); log.warning(s.toString()); packIn.getNotifier().addFailureLine(s.toString()); }