Expand my Community achievements bar.

Who Me Too'd this topic

Avatar

Level 4

Hi,

I have a resource. I am trying to set property for that resource using ModifiableValueMap. When I tried this I am getting null pointer exception even through that resource is available. What could be the reason and how to fix it. Thanks in advance.

Code Sample:

ModifiableValueMap map= resource.adaptTo(ModifiableValueMap.class);

map.put("property","property valuse");

Regards,

Vasim

Who Me Too'd this topic