Break the for loop searching after removing the item
When inserting a new HardwareConfig item, we will search the list to find if it exists. If yes, remove it first then insert the new one. The problem is that after removing it, we should break the for loop searching else the size value is incorrect and cause IndexOutOfBoundsException. Test: manual, ran the test 30 times and it passed 30 times Change-Id: I870eaa9be410e8e8b6c24ff748fb6c84c292c289
Loading
Please register or sign in to comment