OSDN Git Service

Fix NPE due to missing ProcessItem.mPackageInfo
authorJohannes Carlsson <johannes.carlsson.x@sonyericsson.com>
Mon, 20 Dec 2010 12:42:54 +0000 (13:42 +0100)
committerJohan Redestig <johan.redestig@sonyericsson.com>
Fri, 1 Jul 2011 05:56:27 +0000 (07:56 +0200)
commit8258dc23d3584d8ca2b0ddade6fb84adb86e4866
tree4633c2edaa73178e45bac6cc96f1e1de63fd989f
parent643e48b7fd1f1be62ac4bedc1051c00be129006b
Fix NPE due to missing ProcessItem.mPackageInfo

The reason was that a item was removed from the SparseArray while
iterating it causing one ProcessItem to be skipped in the loop which
makes sure that mPackageInfo is not null. This happens when all
processes for one uid is stopped and a new process is created.
This problem was found by running monkey.

Change-Id: I5e9a76e8007819d5e6d9ba15af0c2362da193526
src/com/android/settings/applications/RunningState.java