throw exception if createAccountsCPtr() returned null pointer

This commit is contained in:
adbenitez
2026-01-27 01:20:27 +01:00
parent fa17b134cf
commit a03fd337ef
@@ -4,6 +4,7 @@ public class DcAccounts {
public DcAccounts(String dir) {
accountsCPtr = createAccountsCPtr(dir);
if (accountsCPtr == 0) throw new RuntimeException("createAccountsCPtr() returned null pointer");
}
@Override