mirror of https://github.com/zlatinb/muwire
investigate StringIndexOutOfBounds
parent
f794c39760
commit
d27872cc8b
|
@ -97,6 +97,7 @@ class DownloadSession {
|
||||||
os.flush()
|
os.flush()
|
||||||
String codeString = readTillRN(is)
|
String codeString = readTillRN(is)
|
||||||
int space = codeString.indexOf(' ')
|
int space = codeString.indexOf(' ')
|
||||||
|
if (space > 0)
|
||||||
codeString = codeString.substring(0, space)
|
codeString = codeString.substring(0, space)
|
||||||
|
|
||||||
int code = Integer.parseInt(codeString.trim())
|
int code = Integer.parseInt(codeString.trim())
|
||||||
|
|
Loading…
Reference in New Issue