[PR #5873] [MERGED] Check for empty string when migrating displaypreferences #10699

Closed
opened 2026-02-07 06:25:10 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/jellyfin/jellyfin/pull/5873
Author: @cvium
Created: 4/20/2021
Status: Merged
Merged: 4/20/2021
Merged by: @Bond-009

Base: masterHead: fix-displaypref-migration


📝 Commits (2)

  • cbb855e Check for empty string when migrating displaypreferences
  • 4d7c1fb use int.Parse

📊 Changes

1 file changed (+5 additions, -5 deletions)

View changed files

📝 Jellyfin.Server/Migrations/Routines/MigrateDisplayPreferencesDb.cs (+5 -5)

📄 Description

Changes
Some values were empty strings, which causes int.Parse to crash

Issues
Fixes https://github.com/jellyfin/jellyfin/issues/5473#issuecomment-817184184


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/jellyfin/jellyfin/pull/5873 **Author:** [@cvium](https://github.com/cvium) **Created:** 4/20/2021 **Status:** ✅ Merged **Merged:** 4/20/2021 **Merged by:** [@Bond-009](https://github.com/Bond-009) **Base:** `master` ← **Head:** `fix-displaypref-migration` --- ### 📝 Commits (2) - [`cbb855e`](https://github.com/jellyfin/jellyfin/commit/cbb855e65fd56d44b6e5714dd6843bb1d9dee1b8) Check for empty string when migrating displaypreferences - [`4d7c1fb`](https://github.com/jellyfin/jellyfin/commit/4d7c1fbdca44eb6e892b104b765b86e146ac9765) use int.Parse ### 📊 Changes **1 file changed** (+5 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `Jellyfin.Server/Migrations/Routines/MigrateDisplayPreferencesDb.cs` (+5 -5) </details> ### 📄 Description <!-- Ensure your title is short, descriptive, and in the imperative mood (Fix X, Change Y, instead of Fixed X, Changed Y). For a good inspiration of what to write in commit messages and PRs please review https://chris.beams.io/posts/git-commit/ and our documentation. --> **Changes** Some values were empty strings, which causes `int.Parse` to crash **Issues** Fixes https://github.com/jellyfin/jellyfin/issues/5473#issuecomment-817184184 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-07 06:25:10 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#10699