Skip to content

Fix nil pointer exception when using a local file#678

Merged
torgermiller merged 1 commit intomainfrom
fix-logserver-bundle-local-file
Jun 30, 2025
Merged

Fix nil pointer exception when using a local file#678
torgermiller merged 1 commit intomainfrom
fix-logserver-bundle-local-file

Conversation

@torgermiller
Copy link
Contributor

@torgermiller torgermiller commented Jun 30, 2025

As a result of my remote log bundle support change I introduced a nil pointer exception when using a local file. This PR fixes that by mirroring an error check used in the HTTPS case (the parsedURL will not be nil if the error is nil).

The nil pointer exception occurred because I assumed the parsedURL object would be populated but this is not the case when a filename is used as the parsing fails.

@github-actions github-actions bot added the bug Something isn't working label Jun 30, 2025
@torgermiller torgermiller force-pushed the fix-logserver-bundle-local-file branch from a540cdd to e6bfe7f Compare June 30, 2025 18:56
@torgermiller torgermiller merged commit 1301dd0 into main Jun 30, 2025
5 checks passed
@torgermiller torgermiller deleted the fix-logserver-bundle-local-file branch June 30, 2025 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Development

Successfully merging this pull request may close these issues.

2 participants