We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3651fd9 commit 72ac39eCopy full SHA for 72ac39e
src/main/java/ru/mystamps/web/service/SeriesInfoExtractorServiceImpl.java
@@ -153,6 +153,10 @@ public Integer extractReleaseYear(String fragment) {
153
// @todo #781 SeriesInfoExtractorServiceImpl.extractQuantity() respect MAX_STAMPS_IN_SERIES
154
@Override
155
public Integer extractQuantity(String fragment) {
156
+ if (StringUtils.isBlank(fragment)) {
157
+ return null;
158
+ }
159
+
160
Matcher matcher = NUMBER_OF_STAMPS_REGEXP.matcher(fragment);
161
if (matcher.find()) {
162
return Integer.valueOf(matcher.group(1));
0 commit comments