fixed NPE

This commit is contained in:
Sandro La Bruzzo 2020-08-06 10:27:05 +02:00
parent dcb09aaf0d
commit eea8e87b25
1 changed files with 2 additions and 0 deletions

View File

@ -105,6 +105,8 @@ public class MapDocumentUtil {
public static String truncateValue(String value, int length) {
if (value == null)
return "";
if (length == -1 || length > value.length())
return value;