Uploaded image for project: 'E-commerce'
  1. E-commerce
  2. ECOMMERCE-433

Throw an exception when adding a component with no connection on 1.2.5

XMLWordPrintable

    • Content Mngmt 08
    • 2

      Steps to reproduce

      1.  Add a category list component with no connection
      2.  

      .. Logs, screenshots, gifs...

      Expected results

      .. Justify non-trivial expectations with a link to a doc or a relevant discussion.

      Actual results

      Throw an exception on browser

       

      2021-07-01 16:34:29,101 ERROR nfo.magnolia.admincentral.AdmincentralErrorHandler: AdmincentralUI has encountered an unhandled exception.2021-07-01 16:34:29,101 ERROR nfo.magnolia.admincentral.AdmincentralErrorHandler: AdmincentralUI has encountered an unhandled exception.java.util.NoSuchElementException: No value present at java.util.Optional.get(Optional.java:135) ~[?:1.8.0_241] at info.magnolia.ecommerce.app.catalogs.chooser.HierarchicalCategoryChooserTreeDataProvider.getConnections(HierarchicalCategoryChooserTreeDataProvider.java:124) ~[magnolia-ecommerce-ui-1.2.5-SNAPSHOT.jar:?] at info.magnolia.ecommerce.app.catalogs.chooser.HierarchicalCategoryChooserTreeDataProvider.getRoot(HierarchicalCategoryChooserTreeDataProvider.java:92) ~[magnolia-ecommerce-ui-1.2.5-SNAPSHOT.jar:?] at info.magnolia.ecommerce.app.catalogs.chooser.HierarchicalCategoryChooserTreeDataProvider.fetchChildrenFromBackEnd(HierarchicalCategoryChooserTreeDataProvider.java:75) ~[magnolia-ecommerce-ui-1.2.5-SNAPSHOT.jar:?] at com.vaadin.data.provider.AbstractBackEndHierarchicalDataProvider.fetchChildren(AbstractBackEndHierarchicalDataProvider.java:66) ~[vaadin-server-8.13.0.jar:8.13.0] at info.magnolia.ecommerce.app.catalogs.chooser.HierarchicalCategoryChooserTreeDataProvider.fetch(HierarchicalCategoryChooserTreeDataProvider.java:64) ~[magnolia-ecommerce-ui-1.2.5-SNAPSHOT.jar:?] at info.magnolia.ui.contentapp.CaptionFilteringDataProviderWrapper.fetch(CaptionFilteringDataProviderWrapper.java:85) ~[magnolia-ui-framework-6.2.9.jar:?] at info.magnolia.ui.contentapp.CaptionFilteringDataProviderWrapper.size(CaptionFilteringDataProviderWrapper.java:100) ~[magnolia-ui-framework-6.2.9.jar:?] at com.vaadin.data.provider.DataCommunicator.getDataProviderSize(DataCommunicator.java:815) ~[vaadin-server-8.13.0.jar:8.13.0]

      Workaround

      Development notes

        Acceptance criteria

              thuy.to Thuy To
              thuy.to Thuy To
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0d
                  0d
                  Logged:
                  Time Spent - 1.5d
                  1.5d