In a directory test defined by Studio since NXS-2504 and that does not deploy contribution "org.nuxeo.ecm.core.cache", test setup fails with unclear error:
Suppressed: java.lang.NullPointerException at org.nuxeo.ecm.directory.DirectoryCache.getEntryCache(DirectoryCache.java:197) at org.nuxeo.ecm.directory.DirectoryCache.invalidateAll(DirectoryCache.java:177) at org.nuxeo.ecm.directory.AbstractDirectory.invalidateCaches(AbstractDirectory.java:125) at org.nuxeo.ecm.directory.sql.SQLSession.deleteEntry(SQLSession.java:638) at org.nuxeo.ecm.directory.sql.SQLDirectoryFeature.afterTeardown(SQLDirectoryFeature.java:154) at org.nuxeo.runtime.test.runner.FeaturesRunner$9.call(FeaturesRunner.java:231) at org.nuxeo.runtime.test.runner.FeaturesLoader.apply(FeaturesLoader.java:126)
We should clearly state that the cache service is missing instead of throwing a NPE.