GraphStream Users

Archives de la liste Aide

Re: SwingViewer: auto layout null-pointer exception

Chronologique Discussions 
  • From: guilhelm savin <guilhelm.savin AT>
  • To: graphstream-users AT, klahaag AT
  • Subject: Re: SwingViewer: auto layout null-pointer exception
  • Date: Sun, 1 Jul 2012 01:36:41 +0200


It can only happen when calling disableAutoLayout() before
LayoutRunner had started.

A new jar will be available tomorrow with this fix here :


2012/7/1 <klahaag AT>
When I enable/disable the autolayout on the viewer I can create a null pointer exception.
The issue is not happening on every run, but pretty often.
Looks like a concurrency issue like a missing thread lock somewhere.
Offending code:
Platform: Win 7, JRE 1.7
Happens with Viewer.ThreadingModel.GRAPH_IN_SWING_THREAD and

Guilhelm Savin
PhD Student of Computer Science

Archives gérées par MHonArc 2.6.16.

Top of page