Skip to content

Commit 96ba11f

Browse files
committed
add NULL checks
1 parent bdae9c8 commit 96ba11f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

android-refimpl-app/app/src/main/java/com/zoffcc/applications/trifa/TrifaToxService.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2016,7 +2016,11 @@ static void bootstrap_me()
20162016
while (i2.hasNext())
20172017
{
20182018
ee = (BootstrapNodeEntryDB) i2.next();
2019-
int bootstrap_result = HelperGeneric.add_tcp_relay_single_wrapper(ee.ip, ee.port, ee.key_hex);
2019+
int bootstrap_result = 1;
2020+
if ((ee.ip != null) && (ee.key_hex != null))
2021+
{
2022+
bootstrap_result = HelperGeneric.add_tcp_relay_single_wrapper(ee.ip, ee.port, ee.key_hex);
2023+
}
20202024
Log.i(TAG, "add_tcp_relay_single:res=" + bootstrap_result);
20212025

20222026
if (bootstrap_result == 0)

0 commit comments

Comments
 (0)