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

Unhandled NullPointerException when using KitodoScript addDataToIssues #5976

Open
solth opened this issue Mar 4, 2024 · 0 comments
Open
Labels

Comments

@solth
Copy link
Member

solth commented Mar 4, 2024

Describe the bug
A NullPointerException is thrown when applying the KitodoScript addDataToIssues to selected processes that do not contain structure elements with the name supplied using the parameter type.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Processes' page
  2. Select some processes via checkbox
  3. Click on 'Actions' menu in the footer
  4. Select 'Execute KitodoScript' from list of options
  5. Select action 'addDataToIssues'
  6. Replace 'PeriodicalIssue' as value of 'type' parameter with some string that does not exist as structure element in selected processes
  7. Click button 'Execute Kitodo script'
  8. See error

Expected behavior
The NullPointerException should be prevented or handled. Instead of seeing a stack trace, the user should be informed about the nature of the problem in a popup dialog or error message.

Screenshots
Bildschirmfoto 2024-03-04 um 11 58 30

Release
3.7.0-SNAPSHOT

@solth solth added the bug label Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant