-
Bug
-
Resolution: Fixed
-
Major
-
4.0M11
-
None
-
None
Encountered while saving the configuration of a site in the admin workspace, without any Solr server up.
I guess I got the error because I had no Solr server but still we should avoid this NPE.
At line 109 (see stacktrace), in my case httpresponse is null.
Stacktrace:
java.lang.NullPointerException
at org.ametys.web.cache.CacheHelper.testWS(CacheHelper.java:109)
at org.ametys.web.cache.CacheHelper.testWS(CacheHelper.java:81)
at org.ametys.web.cache.CacheHelper.invalidateCache(CacheHelper.java:250)
at org.ametys.web.repository.site.SiteDAO.clearCache(SiteDAO.java:480)
at org.ametys.web.repository.site.SiteDAO.configureSite(SiteDAO.java:565)
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:483)
at org.ametys.core.ui.ExecuteClientCallsAction._executeMethod(ExecuteClientCallsAction.java:133)
at org.ametys.core.ui.ExecuteClientCallsAction.act(ExecuteClientCallsAction.java:120)
[...]