investigate StringIndexOutOfBounds
This commit is contained in:
@@ -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())
|
||||||
|
|||||||
Reference in New Issue
Block a user