cuba-platform / reports

CUBA Reports Addon
https://www.cuba-platform.com/
Apache License 2.0
9 stars 4 forks source link

NPE while create report with wizard #233

Closed andreysubbotin closed 5 years ago

andreysubbotin commented 5 years ago

Environment

Description of the bug or enhancement

Caused by: java.lang.NullPointerException: null
    at com.haulmont.reports.entity.wizard.ReportRegion.isTabulatedRegion(ReportRegion.java:131)
    at com.haulmont.chile.core.model.impl.AbstractInstance.getValue(AbstractInstance.java:108)
    at com.haulmont.cuba.core.entity.BaseGenericIdEntity.getValue(BaseGenericIdEntity.java:146)
    at com.haulmont.chile.core.model.impl.AbstractInstance.setValue(AbstractInstance.java:157)
    at com.haulmont.cuba.core.entity.BaseGenericIdEntity.setValue(BaseGenericIdEntity.java:126)
    at com.haulmont.chile.core.model.impl.AbstractInstance.setValue(AbstractInstance.java:142)
    at com.haulmont.cuba.gui.data.impl.EntityCopyUtils.copyCompositions(EntityCopyUtils.java:90)
    at com.haulmont.cuba.gui.data.impl.EntityCopyUtils.copyCompositions(EntityCopyUtils.java:45)
    at com.haulmont.cuba.gui.components.AbstractEditor.setItemInternal(AbstractEditor.java:211)
    at com.haulmont.cuba.gui.components.AbstractEditor.setItem(AbstractEditor.java:158)
    at com.haulmont.cuba.gui.components.AbstractEditor.setEntityToEdit(AbstractEditor.java:451)
    at com.haulmont.cuba.web.sys.WebScreens.openEditor(WebScreens.java:1208)
    at com.haulmont.cuba.gui.components.HasWindowManager.openEditor(HasWindowManager.java:132)
    at com.haulmont.reports.gui.report.wizard.RegionsStepFrame$AddRegionAction.openRegionEditor(RegionsStepFrame.java:108)
    at com.haulmont.reports.gui.report.wizard.RegionsStepFrame$AddSimpleRegionAction.actionPerform(RegionsStepFrame.java:131)
    at com.haulmont.reports.gui.report.wizard.RegionsStepFrame$BeforeShowRegionsStepFrameHandler.showAddRegion(RegionsStepFrame.java:366)
    at com.haulmont.reports.gui.report.wizard.RegionsStepFrame$BeforeShowRegionsStepFrameHandler.beforeShowFrame(RegionsStepFrame.java:349)
    at com.haulmont.reports.gui.report.wizard.step.StepFrame.beforeShow(StepFrame.java:97)
    at com.haulmont.reports.gui.report.wizard.step.StepFrameManager.showCurrentFrame(StepFrameManager.java:43)
    at com.haulmont.reports.gui.report.wizard.step.StepFrameManager.nextFrame(StepFrameManager.java:112)
    at com.haulmont.reports.gui.report.wizard.ReportWizardCreator$1.actionPerform(ReportWizardCreator.java:208)
    at com.haulmont.cuba.web.gui.components.WebButton.buttonClicked(WebButton.java:67)
    at com.haulmont.cuba.web.widgets.CubaButton.fireClick(CubaButton.java:76)
    at com.vaadin.ui.Button$1.click(Button.java:57)