diff --git a/catalog/transformer/catalog-transformer-csv-common/pom.xml b/catalog/transformer/catalog-transformer-csv-common/pom.xml index a1b422d9ff7..4b763c3aa10 100644 --- a/catalog/transformer/catalog-transformer-csv-common/pom.xml +++ b/catalog/transformer/catalog-transformer-csv-common/pom.xml @@ -71,12 +71,12 @@ BRANCH COVEREDRATIO - 0.84 + 0.82 COMPLEXITY COVEREDRATIO - 0.82 + 0.79 diff --git a/catalog/transformer/catalog-transformer-csv-common/src/main/java/ddf/catalog/transformer/csv/common/CsvTransformer.java b/catalog/transformer/catalog-transformer-csv-common/src/main/java/ddf/catalog/transformer/csv/common/CsvTransformer.java index 5b2cfec6ee1..23cbf902419 100644 --- a/catalog/transformer/catalog-transformer-csv-common/src/main/java/ddf/catalog/transformer/csv/common/CsvTransformer.java +++ b/catalog/transformer/catalog-transformer-csv-common/src/main/java/ddf/catalog/transformer/csv/common/CsvTransformer.java @@ -210,7 +210,11 @@ private static boolean isNonEmptyValue(Metacard metacard, AttributeDescriptor de case STRING: case XML: case GEOMETRY: - return attribute != null && StringUtils.isNotEmpty((String) attribute.getValue()); + return attribute != null + && attribute.getValue() != null + && ((attribute.getValue() instanceof String) + ? StringUtils.isNotEmpty((String) attribute.getValue()) + : true); case INTEGER: case LONG: case DOUBLE: diff --git a/catalog/transformer/catalog-transformer-rtf/src/main/java/ddf/catalog/transformer/output/rtf/model/ExportCategory.java b/catalog/transformer/catalog-transformer-rtf/src/main/java/ddf/catalog/transformer/output/rtf/model/ExportCategory.java index 65b6eeee97d..880ee07d14c 100644 --- a/catalog/transformer/catalog-transformer-rtf/src/main/java/ddf/catalog/transformer/output/rtf/model/ExportCategory.java +++ b/catalog/transformer/catalog-transformer-rtf/src/main/java/ddf/catalog/transformer/output/rtf/model/ExportCategory.java @@ -165,7 +165,11 @@ private static boolean isNonEmptyValue(Metacard metacard, String attrName) { case STRING: case XML: case GEOMETRY: - return attribute != null && StringUtils.isNotEmpty((String) attribute.getValue()); + return attribute != null + && attribute.getValue() != null + && ((attribute.getValue() instanceof String) + ? StringUtils.isNotEmpty((String) attribute.getValue()) + : true); case INTEGER: case LONG: case DOUBLE: