Closed
Description
At present field first_price
in the series_sales
table allow to have NULL
value but the series info page couldn't be opened because it leads to the exception:
2016-08-27 23:45:57.952 ERROR 37615 --- [qtp800234896-39] r.m.web.controller.ErrorController : Exception 'org.springframework.web.util.NestedServletException' occurred at page /series/2
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.thymeleaf.exceptions.TemplateProcessingException: Error formatting decimal with minimum integer digits = 0, thousands point type = DEFAULT, decimal digits = 2 and decimal point type = DEFAULT (series/info:264)
...
Caused by: org.thymeleaf.exceptions.TemplateProcessingException: Error formatting decimal with minimum integer digits = 0, thousands point type = DEFAULT, decimal digits = 2 and decimal point type = DEFAULT (series/info:264)
...
Caused by: java.lang.IllegalArgumentException: Cannot apply format on null
How to reproduce:
- create the transaction with
NULL
as value offirst_price
column - open page with info about this series
Example:
insert into series_sales(series_id,seller_id,buyer_id) values(1,2,3);
Related to #198