This is an automated email from the ASF dual-hosted git repository. rombert pushed a commit to annotated tag org.apache.sling.resource.inventory-1.0.2 in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-resource-inventory.git
commit 01bf0a8c7a6d7089f80a92198553d559a825e73f Author: Carsten Ziegeler <[email protected]> AuthorDate: Tue Apr 22 09:22:39 2014 +0000 SLING-3507 : Potential NPE in JSON dump from JMX git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/contrib/extensions/resource-inventory@1589049 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/sling/resource/inventory/impl/JsonObjectCreator.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/apache/sling/resource/inventory/impl/JsonObjectCreator.java b/src/main/java/org/apache/sling/resource/inventory/impl/JsonObjectCreator.java index bbe022b..2516edc 100644 --- a/src/main/java/org/apache/sling/resource/inventory/impl/JsonObjectCreator.java +++ b/src/main/java/org/apache/sling/resource/inventory/impl/JsonObjectCreator.java @@ -130,8 +130,10 @@ public abstract class JsonObjectCreator { return value; } else if ( value instanceof Double ) { return value; - } else { + } else if ( value != null ) { return value.toString(); + } else { + return ""; // assume empty string } } -- To stop receiving notification emails like this one, please contact "[email protected]" <[email protected]>.
