am d805c677: Merge "Possible NullPointerException in restorePanelState"
* commit 'd805c67749e7bc80d77028ffa3b58de3b04f621b': Possible NullPointerException in restorePanelState
This commit is contained in:
committed by
Android Git Automerger
commit
415b812569
@@ -1653,7 +1653,9 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback {
|
||||
*/
|
||||
private void restorePanelState(SparseArray<Parcelable> icicles) {
|
||||
PanelFeatureState st;
|
||||
for (int curFeatureId = icicles.size() - 1; curFeatureId >= 0; curFeatureId--) {
|
||||
int curFeatureId;
|
||||
for (int i = icicles.size() - 1; i >= 0; i--) {
|
||||
curFeatureId = icicles.keyAt(i);
|
||||
st = getPanelState(curFeatureId, false /* required */);
|
||||
if (st == null) {
|
||||
// The panel must not have been required, and is currently not around, skip it
|
||||
|
||||
Reference in New Issue
Block a user