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

Course with metadata throws NPE #6069

Open
matthias-ronge opened this issue May 13, 2024 · 0 comments
Open

Course with metadata throws NPE #6069

matthias-ronge opened this issue May 13, 2024 · 0 comments

Comments

@matthias-ronge
Copy link
Collaborator

Describe the bug
A course XML with metadata cannot be imported back. It gives a null pointer exception:

java.lang.NullPointerException: null
    at org.kitodo.production.model.bibliography.course.metadata.CountableMetadata.setStartValue(CountableMetadata.java:306)
    at org.kitodo.production.model.bibliography.course.Course.processRecoveredMetadata(Course.java:385)
    at org.kitodo.production.model.bibliography.course.Course.<init>(Course.java:311)
    at org.kitodo.production.forms.CalendarForm.upload(CalendarForm.java:678)

The line that causes the error was introduced in PR #4924.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant