Skip to content

Commit

Permalink
Fix NullPointerException in resto menu
Browse files Browse the repository at this point in the history
  • Loading branch information
niknetniko committed Feb 14, 2024
1 parent 5f2d136 commit 1784170
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ boolean hasMessage() {
}

boolean hasVegetables() {
return !menu.vegetables().isEmpty();
return menu.vegetables() != null && !menu.vegetables().isEmpty();
}

boolean hasColdDishes() {
Expand Down

0 comments on commit 1784170

Please sign in to comment.