I have this SPEL expression in Hybris:
attribute->baseProduct.onlineDate that returns a java.util.Date;
However , when I try to get the Time in long :
attribute->baseProduct.onlineDate.getTime()
It throws an exception:
Attempted to call method getTime() on null context object
I don't understand why is this happening ,since getTime is a public method of java.util.Date. Any hint?