File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
src/main/java/ru/mystamps/web/feature/country Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 17
17
*/
18
18
package ru .mystamps .web .feature .country ;
19
19
20
+ import org .apache .commons .lang3 .StringUtils ;
21
+
20
22
import org .springframework .web .bind .annotation .GetMapping ;
21
23
import org .springframework .web .bind .annotation .RestController ;
22
24
@@ -33,10 +35,14 @@ class SuggestionController {
33
35
34
36
/**
35
37
* @author John Shkarin
38
+ * @author Slava Semushin
36
39
*/
37
40
@ GetMapping (Url .SUGGEST_SERIES_COUNTRY )
38
41
public String suggestCountryForUser (@ CurrentUser Integer currentUserId ) {
39
- return countryService .suggestCountryForUser (currentUserId );
42
+ return StringUtils .defaultString (
43
+ countryService .suggestCountryForUser (currentUserId ),
44
+ StringUtils .EMPTY
45
+ );
40
46
}
41
47
42
48
}
You can’t perform that action at this time.
0 commit comments