Skip to content

Conversation

@hamen
Copy link
Contributor

@hamen hamen commented Apr 2, 2025

This PR addresses an unfortunate lack of warning for methods that can throw exceptions.

ThemeColorPalette was using a nullable chain containing also get(index) and then acting on missing values using the Elvis operator .?. Unfortunately, get(index) is an unsafe method that throws, preventing the .? from doing any rescue.

We switched to a safer variant, and properly managing the null.

@hamen hamen self-assigned this Apr 2, 2025
@hamen hamen requested a review from rock3r April 2, 2025 10:49
@rock3r rock3r added the Jewel label Apr 2, 2025
@hamen hamen force-pushed the hamen/JEWEL-803 branch 2 times, most recently from fee1820 to 5e9a18a Compare April 2, 2025 11:21
@hamen hamen force-pushed the hamen/JEWEL-803 branch from 5e9a18a to 86d61e4 Compare April 2, 2025 13:02
@hamen hamen requested a review from rock3r April 2, 2025 13:06
@hamen hamen force-pushed the hamen/JEWEL-803 branch from 86d61e4 to 87dbc70 Compare April 3, 2025 09:00
Copy link
Collaborator

@rock3r rock3r left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ready to merge

@hamen hamen force-pushed the hamen/JEWEL-803 branch from 87dbc70 to 19e5f0c Compare April 14, 2025 13:19
@hamen
Copy link
Contributor Author

hamen commented Apr 14, 2025

  • Rebased
  • Ran IDEA
  • Ran Standalone

@rock3r rock3r assigned rock3r and unassigned hamen May 19, 2025
@rock3r rock3r deleted the hamen/JEWEL-803 branch May 29, 2025 05:57
intellij-monorepo-bot pushed a commit that referenced this pull request Jul 21, 2025
closes #3015

(cherry picked from commit 9aeff9558a7ff0715fd7ed49822a776e5c281709)


(cherry picked from commit 0354730ab97e8ff45cfb9cb897a752d2e6fbf8bf)

IJ-MR-169155

GitOrigin-RevId: 6db85b932a92fd7c318d62a73d82145c960ab2dc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants