X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fldk%2Fstructs%2FHostname.java;fp=src%2Fmain%2Fjava%2Forg%2Fldk%2Fstructs%2FHostname.java;h=afe13a63baa1cfae0bd22788546572ed7923696e;hb=3c60e0fd0da579be9932801c1be2b32014c944a5;hp=27c661c44c6cb469bf5390a3518debe2541d3707;hpb=305052451d456ee72ef4d37547d11c4ad610fbe7;p=ldk-java diff --git a/src/main/java/org/ldk/structs/Hostname.java b/src/main/java/org/ldk/structs/Hostname.java index 27c661c4..afe13a63 100644 --- a/src/main/java/org/ldk/structs/Hostname.java +++ b/src/main/java/org/ldk/structs/Hostname.java @@ -38,7 +38,7 @@ public class Hostname extends CommonBase { Reference.reachabilityFence(this); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.Hostname ret_hu_conv = null; if (ret < 0 || ret > 4096) { ret_hu_conv = new org.ldk.structs.Hostname(null, ret); } - ret_hu_conv.ptrs_to.add(this); + if (ret_hu_conv != null) { ret_hu_conv.ptrs_to.add(this); }; return ret_hu_conv; }