I implemented a new metric for nodes. in my loop on the graph nodes, I use
n.setAttribute(NEWMETRIC, newMetric) to add the computed value in the nodes table.
I already usednodeTable.addColumn(NEWMETRIC, NbBundle.getMessage(NewMetric.class, "NewMetric.nodecolumn.NewMetric"), Double.class, 0.0); to add the column to the nodes table.
the null pointer is located in the setAtrribute instruction.
Did I miss somthing ?
Exception:
java.lang.NullPointerException at org.gephi.graph.impl.ElementImpl.checkColumn(ElementImpl.java:705) at org.gephi.graph.impl.ElementImpl.setAttribute(ElementImpl.java:318) at org.gephi.graph.impl.ElementImpl.setAttribute(ElementImpl.java:313)
PS: my new_metric's class iimplements only statisctics interface
I implemented a new metric for nodes. in my loop on the graph nodes, I use
n.setAttribute(NEWMETRIC, newMetric)
to add the computed value in the nodes table. I already usednodeTable.addColumn(NEWMETRIC, NbBundle.getMessage(NewMetric.class, "NewMetric.nodecolumn.NewMetric"), Double.class, 0.0);
to add the column to the nodes table. the null pointer is located in the setAtrribute instruction. Did I miss somthing ?Exception:
java.lang.NullPointerException at org.gephi.graph.impl.ElementImpl.checkColumn(ElementImpl.java:705) at org.gephi.graph.impl.ElementImpl.setAttribute(ElementImpl.java:318) at org.gephi.graph.impl.ElementImpl.setAttribute(ElementImpl.java:313)
PS: my new_metric's class iimplements only statisctics interface