Search code examples
processingtreemap

Processing 3: NullPointerException using PTreeMappa


I'm using Processing 3 for generating a Treemap.I installed gicentreUtils and placed TreeMappa file in the library folder of Processing. I'm getting nullPointerException in line:

pTreeMappa = new PTreeMappa(this).

The full code can be found in this link

Can someone please let me know how to resolve this error.

Thanks


Solution

  • It seems the TreeMapa library hasn't been updated in a few years and internally it may use some Processing code that changed from version 2.x to 3.x (like windows/frames/etc.) which is why the error might occur.

    I advise using TreeMapa with Processing 2.2.1 available on the Processing Downloads page