in dev mode sometimes gapi/index is throwing a number format exception due to an empty string being passed in the body to the faReviewStars tag.
hasn't shown up in production yet.
possible solution is to test before tag and replace with not available or no info.
in dev mode sometimes gapi/index is throwing a number format exception due to an empty string being passed in the body to the faReviewStars tag. hasn't shown up in production yet. possible solution is to test before tag and replace with not available or no info.
def faReviewStars = { attr, body -> 17: 18: Double rating = Double.parseDouble(body().toString()) 19: def hasDecimal = true 20: def emptyStars = attr.totalStars.toInteger()
Caused by NumberFormatException: empty String ->> 538 | parseDouble in java.lang.Double
tag faReview stars is in MyBusiness code: grails-app/taglib/net/codebuilders/mybusiness/ReviewTagLib.groovy