Skip to content
This repository has been archived by the owner on Mar 31, 2022. It is now read-only.

IllegalArgumentException in EntityPicker.removeAllActions method #730

Closed
daring2 opened this issue Nov 16, 2021 · 2 comments
Closed

IllegalArgumentException in EntityPicker.removeAllActions method #730

daring2 opened this issue Nov 16, 2021 · 2 comments
Assignees
Labels
type: bug Something isn't working
Milestone

Comments

@daring2
Copy link
Contributor

daring2 commented Nov 16, 2021

Steps to reproduce:

  1. Create a screen with entityPicker field.
  2. Call removeAllActions method for the field.

Result: IllegalArgumentException is thrown

Stacketrace:

Caused by: java.lang.IllegalArgumentException: Incorrect component type. Must be 'EntityPicker' or its inheritors
	at io.jmix.ui.component.EntityPicker$EntityPickerAction.setPicker(EntityPicker.java:74) ~[jmix-ui-1.1.0.jar:na]
	at io.jmix.ui.component.impl.ValuePickerImpl.removeAction(ValuePickerImpl.java:286) ~[jmix-ui-1.1.0.jar:na]
	at io.jmix.ui.component.impl.ValuePickerImpl.removeAllActions(ValuePickerImpl.java:302) ~[jmix-ui-1.1.0.jar:na]
...
@lovtsovaik
Copy link

For QA:

  1. Create a screen with entityPicker field
  2. Inject entityPicker field to controller
  3. Subscribe to init event
  4. In OnInit() call removeAllActions() method for the field
  5. Run the app
  6. Open the screen

@lovtsovaik lovtsovaik assigned reznikova21 and unassigned lovtsovaik Nov 18, 2021
@reznikova21
Copy link

1.2.0-SNAPSHOT - verified

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants