Just to clarify the commentary above is all ab out null values for creating puts, replacement puts work just fine.
Isn't this CacheEntryCreatedEvent.getCache().get(CacheEntryCreatedEvent.getKey())?
I think the way to go here is by adding CacheEntryCreatedEvent.getValue() - similar to CacheEntryModifiedEvent.getValue(). Wdyt?
One way or the other, the behaviour should be consistent between put and amend.
Mind creating a JIRA for this?
Yes sorry for the mistake and correction - my code actually makes sense and shows the value is null. I just wanted to make sure that this behaviour was a bug because it seemed weird. I will create a jira...