We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 52a7103 commit 409c721Copy full SHA for 409c721
1 file changed
propinquity/src/main/java/pdgs/utils/Utils.java
@@ -63,7 +63,7 @@ public static void FractionWithTotalPropinquity(Graph graph) {
63
Set<Integer> node0Nr = node.getAttribute("Nr");
64
65
int propSum = 0;
66
- if (node.getAttribute("NrSum")) {
+ if (node.getAttribute("NrSum") != null) {
67
propSum = (Integer) node.getAttribute("NrSum");
68
} else {
69
for (Integer n : node0Nr) {
0 commit comments