NPE in StyleValueProposalProvider
Accessing the context assist in the brackets ()
of the @style()
annotation causes a NPE:
java.lang.NullPointerException
at de.jabc.cinco.meta.core.ge.style.fragment.StyleValueProposalProvider.getEdgeStyles(StyleValueProposalProvider.java:101)
at de.jabc.cinco.meta.core.ge.style.fragment.StyleValueProposalProvider.getAcceptedStrings(StyleValueProposalProvider.java:58)
at de.jabc.cinco.meta.core.mgl.ui.contentassist.MGLProposalProvider.completeAnnotation_Value(MGLProposalProvider.java:310)
at sun.reflect.GeneratedMethodAccessor123.invoke(Unknown Source)
...
Seems like the getStyles(MGLModel)
method at StyleValueProposalProvider.java#L108 returns null
because it iterates over the annotations of MGLModel
to find the @style(«fileName»)
annotation to read the path of the .style file. However, it does not find any such annotation because it is a graph model annotation.
This used to work for GraphModel
(obviously) but has been adapted with 7fc24758 to the new MGL syntax. That makes me wonder how finding the respective style for a specific node/edge type is handled in context of the new MGL syntax anyway? If the definitions of node/edge types are not associated with a specific graph model anymore how can their style be determined?