Raghu
Raghu

Reputation: 11

Getting null value when I trying to read 'name' value from 'AbstractPromotionModel'?

public void populate(final AbstractPromotionModel source, final PromotionData target)
{
    final String name = source.getName();
    target.setName(name);
    ...
}

In above source code I am getting null value, however the value is found in database.

Upvotes: 0

Views: 40

Answers (1)

Mafick
Mafick

Reputation: 1170

Is it a localized value? If so, than you need to get the value with the localizationService.

Upvotes: 0

Related Questions