Skip to content

Add null-check for toolbar in FooterToolbarGridHelper#setFooterToolbar #131

@coderabbitai

Description

@coderabbitai

Problem

Calling FooterToolbarGridHelper#setFooterToolbar with a null toolbar causes a NullPointerException.

Proposed fix

Add Objects.requireNonNull(toolBar, "Toolbar component must not be null") at the start of the method and import java.util.Objects.

Context

Raised during code review of PR #130.
PR: #130
Review comment: #130 (comment)


Reported by CodeRabbit review bot as requested by @javier-godoy.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions