Vimal Sharma created ATLAS-994:
----------------------------------
Summary: MapType doesn't allow null in value
Key: ATLAS-994
URL: https://issues.apache.org/jira/browse/ATLAS-994
Project: Atlas
Issue Type: Bug
Reporter: Vimal Sharma
Fix For: 0.8-incubating
MapType in Atlas TypeSystem doesn't allow null in values.
MapType uses ImmutableMap which has a check for null in value.
Following exception is encountered:
java.lang.NullPointerException: null value in entry: b=null
at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:235)
at com.google.common.collect.ImmutableMap.entryOf(ImmutableMap.java:144)
at com.google.common.collect.ImmutableMap$Builder.put(ImmutableMap.java:182)
at
org.apache.atlas.typesystem.types.DataTypes$MapType.convert(DataTypes.java:588)
at
org.apache.atlas.typesystem.types.DataTypes$MapType.convert(DataTypes.java:552)
One solution is to use Java HashMap which allows null values.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)