File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
src/main/java/ru/mystamps/web/controller Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -209,6 +209,11 @@ public String processImage(
209
209
HttpServletResponse response )
210
210
throws IOException {
211
211
212
+ if (series == null ) {
213
+ response .sendError (HttpServletResponse .SC_NOT_FOUND );
214
+ return null ;
215
+ }
216
+
212
217
model .addAttribute ("series" , series );
213
218
model .addAttribute ("michelNumbers" , CatalogUtils .toShortForm (series .getMichel ()));
214
219
model .addAttribute ("scottNumbers" , CatalogUtils .toShortForm (series .getScott ()));
@@ -226,11 +231,6 @@ public String processImage(
226
231
return "series/info" ;
227
232
}
228
233
229
- if (series == null ) {
230
- response .sendError (HttpServletResponse .SC_NOT_FOUND );
231
- return null ;
232
- }
233
-
234
234
seriesService .addImageToSeries (form , series , currentUser );
235
235
236
236
return redirectTo (Url .INFO_SERIES_PAGE , series .getId ());
You can’t perform that action at this time.
0 commit comments