|
Re: NullPointerException during programmatically generation of diagram Images [message #1718417 is a reply to message #1718384] |
Wed, 23 December 2015 13:47 |
|
Hi Mehmet,
Thank you for your feedback,
Bug 484507 [1] has been created last week for the same NPE but in
another scenario (menu > copy, which on Windows place the result of a
CoptyToImage in the system clipboard).
A patch has already been provided, but the issue has not yet been added
to any roadmap. The patch targets master and the issue has been marked
as potential target for a backport on maintenance branches.
Do you have compartments on your diagrams ?
Regards
Maxime
Le 23/12/2015 09:30, Emin M. a écrit :
> Hello,
>
> i am trying to generate Images of programmatically generated diagrams. I
> have Rectangles with rounded corners and during the paint methods sub
> calls the image creation fails.
> I think it fails because the OneLineMarginBorder objects int[] dash
> attribute is a null reference.
> Is this a bug? Is there any workaround to avoid this?
>
> Best regards
> Mehmet Karaman
>
>
> Caused by: java.lang.NullPointerException
> at
....
> org.eclipse.gmf.runtime.diagram.ui.render.util.CopyToImageUtil.copyToImage(CopyToImageUtil.java:305)
>
> ... 127 more
>
--
Maxime - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
--
[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=484507
Maxime Porhel - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03563 seconds