[ 
https://issues.apache.org/jira/browse/ATLAS-994?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Madhan Neethiraj updated ATLAS-994:
-----------------------------------
    Fix Version/s:     (was: 0.8-incubating)

> 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
(v7.6.3#76005)

Reply via email to