-
Bug
-
Resolution: Fixed
-
Major
-
3.4.6, 3.5.4
-
None
-
None
When searching contents in the back-office, we display the current step's icon and label.
If the current step of a content in the repository is inconsistent (i.e. existed once but doesn't anymore, or some other error), having this content in the search results makes the search crash. The logs contain the following error:
2015-03-12 11:04:38,390 ERROR [sitemap] (http-8080-7;/cms/plugins/web/search/list.xml) Cannot search for contents : null java.lang.NullPointerException at org.ametys.cms.repository.SearchGenerator.saxContentCurrentState(SearchGenerator.java:754) at org.ametys.cms.repository.SearchGenerator.saxContent(SearchGenerator.java:587) at org.ametys.cms.repository.SearchGenerator.generate(SearchGenerator.java:169)
If the step doesn't exist in the workflow, we should display an "unknown state" icon and message instead of crashing.