Archie Cobbs wrote:

Thomas DeWeese wrote:

 I have only encountered this when an element is not 'displayed'.
There are many things that may make an element not displayed.
It sounds like you have checked most of them.  Are you 100% certain
that this polygon is being rendered?  Like change it's fill and
see if it changes on screen?

It has fill="none" .. because I don't want the box to be visible. I'll try changing it temporarily to see if that helps...

Fill none should still work (as it may be sensitive to pointer events). I would still try just toggling the fill because that will make sure that you aren't missing something in the document.

I edited the map and changed the fill from "none" to a colored fill. After doing that, no more NullPointerExceptions when loading and analyzing the map.

1. Is this a bug? If so, is there a simple patch to fix?

Yes, unfortunately it will require an additional method in Graphics
Node to fix. Currently we use getPrimitiveBounds to give the bbox but this is null for objects with no fill/stroke. I'll work on this.


2. Otherwise, what do you recommend as a workaround? E.g. I could
    have a fill with opacity of 0.0001% that wouldn't be visible.

Actually the best fix would be to use visibility. Give the node a real fill but set visibility to hidden (then just set fill to the real color, and visibility to visible) when you want to show it.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to