Fix crash in case GetLocalIpAddress returns invalid

This commit is contained in:
Brahim Hadriche committed 2023-02-07 20:40:25 -05:00
1 parent 97921aab6e
commit 9697ac58d0
2 files changed
+5 -1

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
import "pkg:/source/utils/StringUtils.bs"
function GetLocalIpAddress() as string
function GetLocalIpAddress() as dynamic
if m.ipAddress = invalid or m.ipAddress = ""
di = CreateObject("roDeviceInfo")
ips = di.GetIPAddrs()