Bug-fix out of range
This commit is contained in:
@@ -579,7 +579,7 @@ func findVersion(s string) string {
|
|||||||
// findAndroidDevice in tokens
|
// findAndroidDevice in tokens
|
||||||
func (p *properties) findAndroidDevice(startIndex int) string {
|
func (p *properties) findAndroidDevice(startIndex int) string {
|
||||||
for i := startIndex; i < startIndex+1; i++ {
|
for i := startIndex; i < startIndex+1; i++ {
|
||||||
if len(p.list) > i {
|
if len(p.list) > i+1 {
|
||||||
dev := p.list[i+1].Key
|
dev := p.list[i+1].Key
|
||||||
if len(dev) == 2 || (len(dev) == 5 && dev[2] == '-') {
|
if len(dev) == 2 || (len(dev) == 5 && dev[2] == '-') {
|
||||||
// probably langage tag (en-us etc..), ignore and continue loop
|
// probably langage tag (en-us etc..), ignore and continue loop
|
||||||
|
|||||||
Reference in New Issue
Block a user