Showing results for 
Search instead for 
Did you mean: 

DataElementUtils.convertDataMapToSet() issue

Cisco Employee
Cisco Employee

I seem to be having some type of issue with the DataElementUtils.convertDataMapToSet () method. It throws an Exception sometimes with null Objects in the passed in Map < String, Object >.

I have not been able to figure out if this is the set complaining about multiple null's or the set complaining about any other multiple same values.

For now, in order for me to get this to work reliably, I never pass in a key and value pair if the value is null for the Object in the Map < String, Object >. Unfortunately, this causes the key to be missing in the Context Service Object. What I would really like is to be able to always pass in all keys, regardless of the value.

I'll post more information when I get some more insight.

1 Reply 1


Hi Joseph,

Thanks for bringing this up! We've updated the code in DataElementUtils so that it now filters out null keys or values.

We'll be releasing an updated version of 1.0.4 in the next day or so that contains this fix and a few others. We'll post in this community site when the new dowbload it is ready.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Recognize Your Peers