You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "Dan Haywood (JIRA)" <ji...@apache.org> on 2018/04/26 05:55:00 UTC

[jira] [Created] (ISIS-1937) NPE when render domain entity for first time that has contributed action on contributed collection.

Dan Haywood created ISIS-1937:
---------------------------------

             Summary: NPE when render domain entity for first time that has contributed action on contributed collection.
                 Key: ISIS-1937
                 URL: https://issues.apache.org/jira/browse/ISIS-1937
             Project: Isis
          Issue Type: Bug
    Affects Versions: 1.16.2
            Reporter: Dan Haywood
             Fix For: 1.16.3


for example

[https://github.com/danhaywood/busydevtutorial]

in Pets.layout.xml, remove the "visits" collection to reproduce.  The contributed Pet_bookVisit action causes the issue because its "owner" is not declared and so returns null.

 
{code:java}
Caused by: java.lang.NullPointerException
at org.apache.isis.core.metamodel.services.grid.bootstrap3.GridSystemServiceBS3.addActionTo(GridSystemServiceBS3.java:661)
at org.apache.isis.core.metamodel.services.grid.bootstrap3.GridSystemServiceBS3.validateAndNormalize(GridSystemServiceBS3.java:529)
at org.apache.isis.core.metamodel.services.grid.GridSystemServiceAbstract.normalize(GridSystemServiceAbstract.java:165)
at org.apache.isis.core.metamodel.services.grid.GridServiceDefault.normalize(GridServiceDefault.java:102)
at org.apache.isis.core.metamodel.facets.object.grid.GridFacetDefault.load(GridFacetDefault.java:75)
at org.apache.isis.core.metamodel.facets.object.grid.GridFacetDefault.getGrid(GridFacetDefault.java:65)
at org.apache.isis.viewer.wicket.ui.components.collectioncontents.ajaxtable.CollectionContentsAsAjaxTablePanel.addPropertyColumnsIfRequired(CollectionContentsAsAjaxTablePanel.java:170)
at org.apache.isis.viewer.wicket.ui.components.collectioncontents.ajaxtable.CollectionContentsAsAjaxTablePanel.buildGui(CollectionContentsAsAjaxTablePanel.java:102)
at org.apache.isis.viewer.wicket.ui.components.collectioncontents.ajaxtable.CollectionContentsAsAjaxTablePanel.onInitialize(CollectionContentsAsAjaxTablePanel.java:80)
at org.apache.wicket.Component.fireInitialize(Component.java:878)
at org.apache.wicket.MarkupContainer.internalInitialize(MarkupContainer.java:1070)
at org.apache.wicket.MarkupContainer.addedComponent(MarkupContainer.java:1047)
at org.apache.wicket.MarkupContainer.add(MarkupContainer.java:241)
at org.apache.wicket.MarkupContainer.addOrReplace(MarkupContainer.java:265)
at{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)