From: Laramie Crocker Date: Fri, 27 May 2011 23:24:16 +0000 (+0000) Subject: NOJIRA Simple NPE fixed X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=8e2c165e6805bad3692e213862f0c74f1f951ef3;p=tmp%2Fjakarta-migration.git NOJIRA Simple NPE fixed --- diff --git a/services/authority/src/main/java/org/collectionspace/services/common/vocabulary/Hierarchy.java b/services/authority/src/main/java/org/collectionspace/services/common/vocabulary/Hierarchy.java index 641e02fb5..8da764722 100644 --- a/services/authority/src/main/java/org/collectionspace/services/common/vocabulary/Hierarchy.java +++ b/services/authority/src/main/java/org/collectionspace/services/common/vocabulary/Hierarchy.java @@ -178,11 +178,11 @@ public class Hierarchy { sb.append("\r\n"); - if (name.length()>0)sbOuter.append(" " +name + "\r\n"); - if (otherNames.length()>0) sbOuter.append(" " +otherNames + "\r\n"); + if (Tools.notBlank(name))sbOuter.append(" " +name + "\r\n"); + if (Tools.notBlank(otherNames)) sbOuter.append(" " +otherNames + "\r\n"); - if (number.length()>0) sbOuter.append("" +number + "\r\n"); - if (otherNumbers.length()>0) sbOuter.append(" " +otherNumbers + "\r\n"); + if (Tools.notBlank(number)) sbOuter.append("" +number + "\r\n"); + if (Tools.notBlank(otherNumbers)) sbOuter.append(" " +otherNumbers + "\r\n"); sbOuter.append(sb);