Skip to content
This repository was archived by the owner on Apr 22, 2020. It is now read-only.

Commit ae495c7

Browse files
committed
handle defaultValue of any type and convert to double
1 parent 7ada479 commit ae495c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/org/neo4j/graphalgo/core/ProcedureConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ public String getWeightProperty() {
226226
}
227227

228228
public double getWeightPropertyDefaultValue(double defaultValue) {
229-
return get(ProcedureConstants.DEFAULT_PROPERTY_VALUE_PARAM, defaultValue);
229+
return getNumber(ProcedureConstants.DEFAULT_PROPERTY_VALUE_PARAM, defaultValue).doubleValue();
230230
}
231231

232232
/**

0 commit comments

Comments
 (0)