Skip to content

/series/info: TemplateProcessingException when transaction doesn't have a price #467

Closed
@php-coder

Description

@php-coder

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 of first_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

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions