[
https://issues.apache.org/jira/browse/ATLAS-994?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Madhan Neethiraj resolved ATLAS-994.
------------------------------------
Resolution: Cannot Reproduce
> 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
> Priority: Major
>
> 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
(v8.3.4#803005)