Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TwoValuesCostProcessor throws java.lang.ArithmeticException: Division by zero #2

Closed
cezarcoca opened this issue Jan 16, 2015 · 1 comment
Labels

Comments

@cezarcoca
Copy link
Owner

For very big files the following exception is thrown :
Caused by: java.lang.ArithmeticException: Division by zero
at java.math.BigDecimal.divide(BigDecimal.java:1669)
at org.sonar.plugins.toxicity.debts.cost.TwoValuesCostProcessor.getCost(TwoValuesCostProcessor.java:46)
at org.sonar.plugins.toxicity.DebtsFilter.filter(DebtsFilter.java:70)
at org.sonar.plugins.toxicity.ToxicityChartDecorator.decorate(ToxicityChartDecorator.java:67)
at org.sonar.batch.phases.DecoratorsExecutor.executeDecorator(DecoratorsExecutor.java:85)

@cezarcoca cezarcoca added the bug label Jan 16, 2015
@cezarcoca
Copy link
Owner Author

Fixed in version 1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant