Hi All,
I encountered a weird error and can't solve it, where is the number? I just want to ask whether in the map there is a key, isn't it?
I renamed the variable name dbinimap, the key ("beepath"), may this is the reason of error, but not. If I delete the line if ... containskey, and read the value: dbinimap.get("bexepath"), then the error goes to that line. The program exit, without could go into the catch!
The file what readmap will read:
The error:
I encountered a weird error and can't solve it, where is the number? I just want to ask whether in the map there is a key, isn't it?
I renamed the variable name dbinimap, the key ("beepath"), may this is the reason of error, but not. If I delete the line if ... containskey, and read the value: dbinimap.get("bexepath"), then the error goes to that line. The program exit, without could go into the catch!
B4X:
Dim backupexepath As String = "" '"c:\Program Files (x86)\PostgreSQL\9.0\bin\pg_dump.exe"
If File.Exists(File.DirApp,Codebase.PGSETINI)=True Then
'hálózatban minden munkaállomáson be kell állítani egyszer a db ip címét!
dbinimap = File.ReadMap(File.DirApp,Codebase.PGSETINI)
Try
If dbinimap.IsInitialized=True Then
If dbinimap.ContainsKey("bexepath")=True Then '<----- java.lang.NumberFormatException: empty String
backupexepath = "" & dbinimap.Get("bexepath")
End If
End If
Catch
backupexepath = ""
End Try
End If
B4X:
#Thu Jul 23 14:20:35 CEST 2020
dblocation=127.0.0.1
The error:
B4X:
An error occurred:
(Line: 448) 448
java.lang.NumberFormatException: empty String