Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPE when trying to create filter with the paramWhere clause #1941

Closed
natfirst opened this issue Mar 11, 2019 · 0 comments
Closed

NPE when trying to create filter with the paramWhere clause #1941

natfirst opened this issue Mar 11, 2019 · 0 comments
Assignees
Labels
state: fixed Fixed by the developer type: regression ver: 7.0.4 Fixed in version ver: 7.1.0 Fixed in version
Milestone

Comments

@natfirst
Copy link
Member

natfirst commented Mar 11, 2019

Environment

Description of the bug or enhancement

  1. Create to entities (OilField and Country)

  2. Add MANY_TO_ONE association between OilField and Country

  3. Create screens for these entities, run the app

  4. In OilField browser add Country to the filter condition

  5. In filter edit screen add custom condition, that depends on the previous condition
    image

  6. Try to save the filter

java.lang.NullPointerException
	at com.haulmont.cuba.gui.data.impl.AbstractCollectionDatasource.getQueryParameters(AbstractCollectionDatasource.java:259)
	at com.haulmont.cuba.gui.data.impl.AbstractCollectionDatasource.createDataQuery(AbstractCollectionDatasource.java:508)
	at com.haulmont.cuba.gui.data.impl.CollectionDatasourceImpl.beforeLoadData(CollectionDatasourceImpl.java:635)
	at com.haulmont.cuba.gui.data.impl.CollectionDatasourceImpl.loadData(CollectionDatasourceImpl.java:609)
	at com.haulmont.cuba.gui.data.impl.CollectionDatasourceImpl.refresh(CollectionDatasourceImpl.java:161)
	at com.haulmont.cuba.gui.data.impl.CollectionDatasourceImpl.refresh(CollectionDatasourceImpl.java:119)
	at com.haulmont.cuba.gui.components.filter.Param.createOptionsDataSource(Param.java:927)
	at com.haulmont.cuba.gui.components.filter.Param.createEntityLookup(Param.java:877)
	at com.haulmont.cuba.gui.components.filter.Param.createEditComponent(Param.java:567)
	at com.haulmont.cuba.gui.components.filter.ParamEditor.createParamEditLayout(ParamEditor.java:77)
	at com.haulmont.cuba.gui.components.filter.ParamEditor.<init>(ParamEditor.java:65)
	at com.haulmont.cuba.gui.components.filter.FilterDelegateImpl.createParamEditor(FilterDelegateImpl.java:993)
	at com.haulmont.cuba.gui.components.filter.FilterDelegateImpl.recursivelyCreateConditionsLayout(FilterDelegateImpl.java:885)
	at com.haulmont.cuba.gui.components.filter.FilterDelegateImpl.fillConditionsLayout(FilterDelegateImpl.java:836)
	at com.haulmont.cuba.gui.components.filter.FilterDelegateImpl$EditAction.lambda$actionPerform$0(FilterDelegateImpl.java:2407)
	at com.haulmont.cuba.gui.components.compatibility.AfterCloseListenerAdapter.accept(AfterCloseListenerAdapter.java:58)
	at com.haulmont.cuba.gui.components.compatibility.AfterCloseListenerAdapter.accept(AfterCloseListenerAdapter.java:26)
	at com.haulmont.bali.events.EventHub.publish(EventHub.java:170)
	at com.haulmont.cuba.gui.screen.Screen.fireEvent(Screen.java:128)
	at com.haulmont.cuba.gui.screen.Screen.close(Screen.java:343)
	at com.haulmont.cuba.gui.components.Window.close(Window.java:258)
	at com.haulmont.cuba.gui.components.filter.edit.FilterEditor.commitAndClose(FilterEditor.java:350)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at com.haulmont.cuba.gui.xml.DeclarativeAction.actionPerform(DeclarativeAction.java:96)
	at com.haulmont.cuba.web.gui.components.WebButton.buttonClicked(WebButton.java:62)
@natfirst natfirst added this to the Release 7.0 milestone Mar 11, 2019
@haulmont-git haulmont-git added the ver: 7.1.0 Fixed in version label Apr 3, 2019
@haulmont-git haulmont-git added the ver: 7.0.4 Fixed in version label Apr 3, 2019
@natfirst natfirst assigned MikhailSilk and unassigned natfirst Apr 4, 2019
@natfirst natfirst assigned myatlevEvg and unassigned MikhailSilk Apr 9, 2019
@myatlevEvg myatlevEvg added the state: fixed Fixed by the developer label Apr 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state: fixed Fixed by the developer type: regression ver: 7.0.4 Fixed in version ver: 7.1.0 Fixed in version
Projects
None yet
Development

No branches or pull requests

5 participants