Skip to content

Commit

Permalink
refactor : null point Exception 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
imenuuu committed Oct 10, 2024
1 parent b96737e commit 6eb7fa8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public TastingNoteResponse.TasteAnalysisDTO TasteAnalysis(List<TastingNote> tast

sweetnessSum += tastingNote.getSweetness();
aciditySum += tastingNote.getAcidity();
alcoholSum += tastingNote.getAlcohol();
alcoholSum += (tastingNote.getAlcohol() != null ? tastingNote.getAlcohol() : 0);
bodySum += tastingNote.getBody();
tanninSum += tastingNote.getTannins();
sparklingSum += tastingNote.getSparkling() != null ? tastingNote.getSparkling() : 0;
Expand Down

0 comments on commit 6eb7fa8

Please sign in to comment.