common-fate / granted

The easiest way to access your cloud.
https://granted.dev
MIT License
955 stars 90 forks source link

Fix panic due to nil pointer in frecency #658

Closed chrnorm closed 1 month ago

chrnorm commented 1 month ago

What changed?

Check the interface conversion in frecent_profiles.go.

Why?

Fixes #608.

There may still be a problem here as the interface should never be nil. This may be an issue on running Granted for the first time perhaps.

In any case, this fix will prevent a panic.

How did you test it?

Currently untested but this is a low risk change, can be tested in prerelease after merged.

Potential risks

Low

Is patch release candidate?

Yes

Link to relevant docs PRs

N/A