Version Pages Appearing in the Page Tree
Problem
If there is no home page defined in a space where Scroll Versions is activated, users might see change pages (dot-pages) in the page tree, in addition to Scroll Versions toolbar not being visible and an exception appearing in the logs:
java.lang.NullPointerException
at com.k15t.scroll.platform.ui.theme.ScrollPageBreadcrumb.resolveHomePage(ScrollPageBreadcrumb.java:89)
at com.k15t.scroll.platform.ui.theme.ScrollPageBreadcrumb.getScrollSpaceBreadcrumb(ScrollPageBreadcrumb.java:79)
at com.k15t.scroll.platform.ui.theme.ScrollPageBreadcrumb.getParent(ScrollPageBreadcrumb.java:53)
at com.atlassian.confluence.util.breadcrumbs.AbstractBreadcrumb.getBreadcrumbsTrail(AbstractBreadcrumb.java:73)
at com.k15t.scroll.platform.ui.theme.ScrollPageBreadcrumb.getBreadcrumbsTrail(ScrollPageBreadcrumb.java:62)
at com.k15t.scroll.platform.services.context.impl.DefaultScrollVersionsContextProvider.getBreadcrumbs(DefaultScrollVersionsContextProvider.java:198)
at com.k15t.scroll.platform.services.context.impl.DefaultScrollVersionsContextProvider.getScrollVersionsContextForPage(DefaultScrollVersionsContextProvider.java:139)
at com.k15t.scroll.platform.services.context.impl.DefaultScrollVersionsContextProvider.getScrollVersionsContext(DefaultScrollVersionsContextProvider.java:108)
at com.k15t.scroll.platform.ui.page.context.ScrollPageContextRenderer.getHtml(ScrollPageContextRenderer.java:71)
Environment
- Scroll Versions
- All versions
Resolution
- Run Health Check in Space Tools → Scroll Add-ons → Health Check
or
- Go to the space and choose Space tools > Overview from the bottom of the sidebar.
- Choose Edit Space Details.
- Enter the page you want use in the Home page field then choose Save.
Cause
Due to the absence of a home page certain features such as page hiding change pages in the tree and the app's toolbar may not work as expected.