Skip to content

Improve null safety in ComponentDatabaseHandler#3988

Merged
GMishx merged 1 commit intoeclipse-sw360:mainfrom
srivastavauddeshya98-lang:null-safety-fix-1
Apr 6, 2026
Merged

Improve null safety in ComponentDatabaseHandler#3988
GMishx merged 1 commit intoeclipse-sw360:mainfrom
srivastavauddeshya98-lang:null-safety-fix-1

Conversation

@srivastavauddeshya98-lang
Copy link
Copy Markdown
Contributor

This PR improves null safety by replacing direct equals comparison with Objects.equals.

Change:
Objects.equals(originalAttachmentId, updatedAttachmentId)

This prevents potential NullPointerException if values are null.

No functional changes.

@rudra-superrr
Copy link
Copy Markdown
Contributor

LGTM.

@GMishx GMishx force-pushed the null-safety-fix-1 branch from 90eded5 to 9ef7bde Compare April 6, 2026 06:26
GMishx
GMishx previously approved these changes Apr 6, 2026
Copy link
Copy Markdown
Member

@GMishx GMishx left a comment

Choose a reason for hiding this comment

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

Approved by @rudra-superrr

@GMishx GMishx enabled auto-merge (rebase) April 6, 2026 06:27
Improve null safety using Objects.equals to prevent NullPointerException in
ComponentDatabaseHandler.
Copy link
Copy Markdown
Member

@GMishx GMishx left a comment

Choose a reason for hiding this comment

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

Fixed CI

@GMishx GMishx disabled auto-merge April 6, 2026 07:47
@GMishx GMishx merged commit 6d20f2d into eclipse-sw360:main Apr 6, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants