Skip to content

Fix null category error when loading from lastrun.json#4644

Closed
GabiNun2 wants to merge 1 commit into
ChrisTitusTech:mainfrom
GabiNun2:fix/null-category-error
Closed

Fix null category error when loading from lastrun.json#4644
GabiNun2 wants to merge 1 commit into
ChrisTitusTech:mainfrom
GabiNun2:fix/null-category-error

Conversation

@GabiNun2

@GabiNun2 GabiNun2 commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

Type of Change

  • Bug fix

Description

Fixes a null reference error that occurs when loading data from lastrun.json. The issue happens because entries from lastrun.json don't have a Category field, causing ContainsKey() and hashtable indexing operations to fail with MethodInvocationException and InvalidOperation errors.

The fix adds a default value of "Uncategorized" for the Category field when it's missing or null, consistent with how the Panel field already defaults to "0". This ensures all entries have valid keys for hashtable operations.

Add default 'Uncategorized' value for Category field when it's missing or null,
preventing MethodInvocationException and InvalidOperation errors that occurred
when entries from lastrun.json lacked a Category property.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@GabiNun2 GabiNun2 requested a review from ChrisTitusTech as a code owner June 5, 2026 10:29
@github-actions github-actions Bot added the bug Something isn't working label Jun 5, 2026
@GabiNun2 GabiNun2 closed this Jun 7, 2026
@GabiNun2 GabiNun2 deleted the fix/null-category-error branch June 7, 2026 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant