I've got a random NPE while testing NXP-18989.
java.lang.NullPointerException at org.nuxeo.ecm.core.convert.cache.ConversionCacheGCManager.doGC(ConversionCacheGCManager.java:116) at org.nuxeo.ecm.core.convert.tests.TestCache.testCache(TestCache.java:91) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497)
The NPE does not allow to understand why the key was null => make the code safer to get more information when that happens.