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

Receiving NPE immediately after '@enduml' #20

Open
andretaryll opened this issue Jun 2, 2015 · 1 comment
Open

Receiving NPE immediately after '@enduml' #20

andretaryll opened this issue Jun 2, 2015 · 1 comment

Comments

@andretaryll
Copy link

Using Grails 2.4.4 on Windows, runtime ":uml-class-diagram:0.4.4"

Receive the following error after selecting the 'draw' action:
@enduml
Error
|
java.lang.NullPointerException
Error |
at net.sourceforge.plantuml.svek.image.EntityImageClass.(EntityImageClass.java:79)

@igorrosenberg
Copy link
Owner

Hello

Can you dig more into the cause of the error ? If you're using version 0.4.4, you are using graphviz 8000, which is http://grepcode.com/file/[email protected]$plantuml@8000@net$sourceforge$plantuml$svek$image$EntityImageClass.java

The code you refer to is
'''
this.shield = version.useShield() && entity.hasNearDecoration() ? 16 : 0;
'''
which points to a null entity or a null version... Really strange, I can't work it out further.

If you have the UML Script (between those @startuml and @enduml), you can try it out on http://www.plantuml.com/plantuml/form - does the script cause the error?

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

No branches or pull requests

2 participants