Skip to content
New issue

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

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

Already on GitHub? # to your account

java.lang.ArithmeticException: / by zero (produced for links in diagrams) #139

Closed
anthonyanjorin opened this issue Sep 17, 2021 · 2 comments

Comments

@anthonyanjorin
Copy link

image

I am currently attempting to update my Plantuml Eclipse plugin and to switch to the new DiagramIntentProviders.
I don't know what is causing the problem but everything worked fine before and now my links in documents are no longer working (see exception above).

The code appears to be problematic anyway -- as the variables are all ints the division is integer division which is always a bit strange. In the current case minX is 6, marginX is 7, sx is 0 and BOOM.

@hallvard
Copy link
Owner

hallvard commented Sep 17, 2021

So you have empirical evidence that marginX = 7 is wrong. I agree that I anyway should check for the division by zero case and perhaps mix in some float arithmetic.

@travkin79
Copy link
Collaborator

Seems to be fixed in release 1.1.27

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

No branches or pull requests

3 participants