forked from D-Net/dnet-hadoop
fixed NPE
This commit is contained in:
parent
a5a3ea24f8
commit
a109ebe287
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue