GraphStream Users

Archives de la liste Aide


Re: SwingViewer: auto layout null-pointer exception


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

Fixed https://github.com/graphstream/gs-core/issues/71

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

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

Regards

2012/7/1 <klahaag AT googlemail.com>
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
Viewer.ThreadingModel.GRAPH_IN_ANOTHER_THREAD.
 
Regards
Klaus
 



--
Guilhelm Savin
PhD Student of Computer Science




Archives gérées par MHonArc 2.6.16.

Top of page