When is the UpdateManager definitely available?

[email protected]
Newsgroups gmane.text.xml.batik.user
Message-ID <[email protected]>
Hi I am using the following code:

canvas.addGVTTreeRendererListener(new GVTTreeRendererAdapter() {
        @Override
        public void gvtRenderingCompleted(GVTTreeRendererEvent e) {
          canvas.getUpdateManager().getUpdateRunnableQueue().invokeLater(runnable);
        }
      });

to do some changes in the DOM of an SVG document. I expected that the
updatemanager is definitely available when gvtRenderingCompleted was
called.
However, it now happened at least once that I got a NullPointerException
on the line
  canvas.getUpdateManager().getUpdateRunnableQueue().invokeLater(runnable);

So it seems that there is still no guarantee that the UpdateManager is
available then. Am I missing something? Must I register on a different
listener?

Regards
Marco
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.