gephi/trunk — Issue #66: NPE when running ClusteringCoefficient on a filtered graph
Author: mbastian
Created: 2011-10-22 16:42:07+00:00
State: open
Labels: Fix Released, High, metric

Way to reproduce:
1) Load sample graph LesMiserables
2) Filter the graph with Degree Range any value
3) RUn the ClusteringCoefficient metric
Throws an NullPointerException

Stack trace:
java.lang.NullPointerException
at org.gephi.statistics.plugin.ClusteringCoefficient.triangles(ClusteringCoefficient.java:362)
at org.gephi.statistics.plugin.ClusteringCoefficient.execute(ClusteringCoefficient.java:224)
at org.gephi.statistics.plugin.ClusteringCoefficient.execute(ClusteringCoefficient.java:218)
at org.gephi.statistics.StatisticsControllerImpl.execute(StatisticsControllerImpl.java:121)
at org.gephi.statistics.StatisticsControllerImpl$2.run(StatisticsControllerImpl.java:109)