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

"Nullable object must have a value" error pops up when opening the settings page #3509

Open
Roshri opened this issue Jan 22, 2025 · 1 comment
Labels
needs-triage Needs to be triaged by a developer and assigned a release

Comments

@Roshri
Copy link

Roshri commented Jan 22, 2025

What happened?

Whenever I load the settings page I get this popup.
It seems to be related to Kavita+ settings.
The pop up shows when I first load the settings page, and then again whenever I shift focus to any Kavita+ tab

Image

What did you expect?

I should be able to edit the settings with no errors

Kavita Version Number - If you don not see your version number listed, please update Kavita and see if your issue still persists.

Nightly Testing Branch

What operating system is Kavita being hosted from?

None

If the issue is being seen on Desktop, what OS are you running where you see the issue?

None

If the issue is being seen in the UI, what browsers are you seeing the problem on?

No response

If the issue is being seen on Mobile, what OS are you running where you see the issue?

None

If the issue is being seen on the Mobile UI, what browsers are you seeing the problem on?

No response

Relevant log output

[Kavita] [2025-01-22 13:20:58.189 -03:00  94] [Error] Microsoft.EntityFrameworkCore.Query An exception occurred while iterating over the results of a query for context type 'API.Data.DataContext'.
System.InvalidOperationException: Nullable object must have a value.
   at System.Nullable`1.get_Value()
   at lambda_method18189(Closure, QueryContext, DbDataReader, ResultContext, SplitQueryResultCoordinator)
   at Microsoft.EntityFrameworkCore.Query.Internal.SplitQueryingEnumerable`1.AsyncEnumerator.MoveNextAsync()
System.InvalidOperationException: Nullable object must have a value.
   at System.Nullable`1.get_Value()
   at lambda_method18189(Closure, QueryContext, DbDataReader, ResultContext, SplitQueryResultCoordinator)
   at Microsoft.EntityFrameworkCore.Query.Internal.SplitQueryingEnumerable`1.AsyncEnumerator.MoveNextAsync()

Additional Notes

No response

@Roshri Roshri added the needs-triage Needs to be triaged by a developer and assigned a release label Jan 22, 2025
@scare376
Copy link
Collaborator

I was able to reproduce this by setting a series to do not match. The error stopped after deleting the series but I have another series that now refuses to match because I attempted to match it while Kavita was in this errored state.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-triage Needs to be triaged by a developer and assigned a release
Projects
Status: In Progress
Development

No branches or pull requests

2 participants