AI 146778: am: CL 146776 fix NPE in AvdManager

Original author: xav
  Merged from: //branches/cupcake/...

Automated import of CL 146778
This commit is contained in:
Xavier Ducrohet
2009-04-18 12:02:53 -07:00
committed by The Android Open Source Project
parent 08bb0ab656
commit 2eeb203c31

View File

@@ -338,7 +338,7 @@ public final class AvdManager {
synchronized (mAllAvdList) {
if (mBrokenAvdList == null) {
ArrayList<AvdInfo> list = new ArrayList<AvdInfo>();
for (AvdInfo avd : mBrokenAvdList) {
for (AvdInfo avd : mAllAvdList) {
if (avd.getStatus() != AvdStatus.OK) {
list.add(avd);
}