Skip to content

Commit

Permalink
null check
Browse files Browse the repository at this point in the history
  • Loading branch information
goulven authored and goulven committed Nov 3, 2024
1 parent b50c717 commit c4ed946
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ public String randomModel() {
*/
public String bestName() {
String ret;
if (null == brand() || null == model()) {
if (StringUtils.isEmpty(brand()) || StringUtils.isEmpty(model())) {
ret = shortestOfferName();
} else {
ret = brandAndModel();
Expand Down

0 comments on commit c4ed946

Please sign in to comment.