In an Ametys multi-site, I have a site that uses a skin that is not on the server and the anonymous stats return an error:
java.lang.IllegalArgumentException: java.lang.NullPointerException: Cannot invoke "org.ametys.web.skin.Skin.getTemplate(String)" because "skin" is null at org.ametys.web.tags.inputdata.FilteredContentsInputData#isCacheable:124 at org.ametys.web.cache.PageHelper#isCacheable:134 at org.ametys.web.statistics.WebStatisticsProvider#_countPages:302 at org.ametys.web.statistics.WebStatisticsProvider#_countPages:327 at org.ametys.web.statistics.WebStatisticsProvider#_countPages:327 at org.ametys.web.statistics.WebStatisticsProvider#_countPages:327 at org.ametys.web.statistics.WebStatisticsProvider#_countPages:284 at org.ametys.web.statistics.WebStatisticsProvider#_countPages:271 at org.ametys.web.statistics.WebStatisticsProvider#getStatistics:94 at org.ametys.runtime.plugins.admin.statistics.StatisticsProviderExtensionPoint#computeStatistics:74 at org.ametys.runtime.plugins.admin.statistics.StatisticsSchedulable#execute:72 at org.ametys.core.schedule.AmetysJob#execute:157 at org.quartz.core.JobRunShell#run:202 at org.quartz.simpl.SimpleThreadPool$WorkerThread#run:573 Caused by: java.lang.NullPointerException: Cannot invoke "org.ametys.web.skin.Skin.getTemplate(String)" because "skin" is null at org.ametys.web.repository.page.virtual.AbstractConfigurableVirtualPage#getTemplate:91 at org.ametys.web.tags.inputdata.FilteredContentsInputData#_getTemplate:177 at org.ametys.web.tags.inputdata.FilteredContentsInputData#configureFilters:164 at org.ametys.web.tags.inputdata.FilteredContentsInputData#isCacheable:116 ... 13 more