gephi-toolkit icon indicating copy to clipboard operation
gephi-toolkit copied to clipboard

EdgePartitionFilter NullPointerException in selectAll() and evaluate()

Open YHRen opened this issue 8 years ago • 1 comments

Dear, Sir,

I encountered an exception when I am trying to develop EdgePartitionFilter, following the example from https://github.com/gephi/gephi-toolkit-demos/blob/master/src/main/java/org/gephi/toolkit/demos/Filtering.java .

if I unselecteAll() and addPart(), there will be no Exception, BUT, the graph is not filtered at all (nodeCount and edgeCount won't change.) Then, I tried to selectAll() and removePart(), the NullPointerException has been thrown. I am sure the attribute is there as I iterated through all edges and output their attribute values.

I think it might be a bug. Could you please have a look?

Thank you so much. Best wishes, Yihui

Here is the error message. (I tried both Java 7 and 8. I tired both 0.9 release version and 0.92 nightly snapshot)

Exception in thread "main" java.lang.NullPointerException at org.gephi.filters.plugin.partition.PartitionBuilder$PartitionFilter.selectAll(PartitionBuilder.java:269) at HelloGephi.main(HelloGephi.java:130)

YHRen avatar Mar 16 '16 20:03 YHRen

Have you find the solution for your problem. As i am also facing same issue with partition filter

loveneet29 avatar Oct 05 '18 06:10 loveneet29

Hi @YHRen I'm closing old issues. Apologies for the lack of reply. I can no longer reproduce this issue so I think it got fixed in version 0.9.3+.

mbastian avatar Mar 17 '23 21:03 mbastian