[C#] Update auto-generated bindings to LDK 0.0.123
[ldk-java] / c_sharp / src / org / ldk / structs / ReadOnlyNetworkGraph.cs
index 0434b8903716fd7efb0f015ec6d2b4fe1e4c5346..1a0a1ebdb287bffbe12a888186fa762c90eec91e 100644 (file)
@@ -47,7 +47,7 @@ public class ReadOnlyNetworkGraph : CommonBase, IDisposable {
         * Note that the return value (or a relevant inner pointer) may be NULL or all-0s to represent None
         */
        public NodeInfo node(org.ldk.structs.NodeId node_id) {
-               long ret = bindings.ReadOnlyNetworkGraph_node(this.ptr, node_id == null ? 0 : node_id.ptr);
+               long ret = bindings.ReadOnlyNetworkGraph_node(this.ptr, node_id.ptr);
                GC.KeepAlive(this);
                GC.KeepAlive(node_id);
                if (ret >= 0 && ret <= 4096) { return null; }