Skip to content

Commit

Permalink
npe fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KaterynaHonchar committed Mar 18, 2024
1 parent 3aa6605 commit b06d42a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ protected void onInitialize() {

private void initLayout() {
List<Badge> badgeList;
if (getModelObject() == null) {
if (getModelObject() != null) {
badgeList = getModelObject()
.stream()
.map(op -> new Badge(createBadgeClass(op), null, createLabelText(op), createTooltip(op)))
Expand Down

0 comments on commit b06d42a

Please sign in to comment.