Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1658: Improve null safety and refactor UI interaction handling. #2500

Conversation

vitaliyboykocontributor
Copy link
Contributor

Replaced direct string equality checks with Objects.equals for better null safety. Refactored popup and navigation logic using invokeLater to improve UI interaction handling and avoid potential threading issues. Added PMD suppression for clarity without affecting standards compliance.

Description (*)

Fixed Issues (if relevant)

  1. Fixes Cannot invoke "com.intellij.psi.PsiDirectory.getName() #1658

Questions or comments

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with integration/functional tests (if applicable)
  • All automated tests passed successfully (all builds are green)

Replaced direct string equality checks with `Objects.equals` for better null safety. Refactored popup and navigation logic using `invokeLater` to improve UI interaction handling and avoid potential threading issues. Added PMD suppression for clarity without affecting standards compliance.
Improved null safety by ensuring proper checks around file navigation logic. Refactored UI interaction and popup messaging to adhere to threading best practices, enhancing code clarity and preventing race conditions. Updated changelog to reflect the fixed issue.
Cleaned up unnecessary blank lines in the class to enhance code structure and maintain consistency. This minor adjustment makes the codebase easier to navigate and adhere to styling conventions.
Reformatted the conditional statement to improve code structure and align with styling conventions. This change enhances code clarity and maintainability, ensuring consistency in the codebase.
@VitaliyBoyko VitaliyBoyko merged commit 5183af0 into magento:5.4.0-develop Feb 23, 2025
5 checks passed
@VitaliyBoyko VitaliyBoyko deleted the 1658-Cannot-invoke-com.intellij.psi.PsiDirectory.getName()- branch February 23, 2025 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

Cannot invoke "com.intellij.psi.PsiDirectory.getName()
3 participants