Correctly handle passing a null to Rust for an array
[ldk-java] / typescript_strings.py
index f90e5a60f761d0e0ceeb795b1a02cd58f33aa4b9..a98ffbff140cf599eacffba701506a16ebc492ad 100644 (file)
@@ -272,6 +272,7 @@ import * as bindings from '../bindings' // TODO: figure out location
         self.ptr_native_ty = "number"
         self.result_c_ty = "uint32_t"
         self.ptr_arr = "ptrArray"
+        self.is_arr_some_check = ("", " != 0")
         self.get_native_arr_len_call = ("*((uint32_t*)", ")")
 
     def release_native_arr_ptr_call(self, ty_info, arr_var, arr_ptr_var):