Skip to content

Commit

Permalink
Merge pull request #703 from ktat/patch-1
Browse files Browse the repository at this point in the history
fix "Cannot cast from Object to int".
  • Loading branch information
koda-masaru authored Apr 12, 2017
2 parents 0077205 + cd53bf8 commit aa2fd21
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<%
int type = jspUtil.getValue("typeId", Integer.class);
if (pageContext.getAttribute("typeId") != null) {
type = (int) pageContext.getAttribute("typeId");
type = (Integer) pageContext.getAttribute("typeId");
}
TemplateMastersEntity template = (TemplateMastersEntity) pageContext.getAttribute("template");
String id = "typeId_" + template.getTypeId();
Expand Down

0 comments on commit aa2fd21

Please sign in to comment.