]
Katia Aresti updated ISPN-9706:
-------------------------------
Status: Pull Request Sent (was: Open)
Git Pull Request:
SpringCache: get("key", Callable) not working with null
values
--------------------------------------------------------------
Key: ISPN-9706
URL:
https://issues.jboss.org/browse/ISPN-9706
Project: Infinispan
Issue Type: Bug
Reporter: Katia Aresti
Assignee: Katia Aresti
Priority: Major
{code:SpringCacheTest.java}
@Test
public void testGetWithNullValue() {
assertNull(cache.get("null", () -> null));
}
{code}
{code}
Caused by: java.lang.NullPointerException: Null values are not supported!
{code}
and
{code:SpringCacheTest.java}
@Test
public void testGetNullValueAfterPutNull() {
cache.put("key", null);
String result = cache.get("key", () -> "notnull");
assertNull(result);
}
{code}
{code}
java.lang.ClassCastException: org.infinispan.spring.provider.NullValue cannot be cast to
java.lang.String
{code}