OSDN Git Service

Fix NPE when trying to refreshes dnd condition.
authorFan Zhang <zhfan@google.com>
Thu, 22 Sep 2016 22:10:40 +0000 (15:10 -0700)
committerFan Zhang <zhfan@google.com>
Thu, 22 Sep 2016 22:13:21 +0000 (22:13 +0000)
commit98487f4d65697d1f674341cb6b93a84e75c495a7
tree0699346658ac3bee21e927a283038f5022ca0ae7
parent4199a0d3bd9a986f5d4c558392469a4126411d50
Fix NPE when trying to refreshes dnd condition.

Bug: 31685838
Test: manual, will add automated test in master.

The NPE happens when try to refresh dnd condition before the condition
object is created.

Change-Id: Idbd6898472e1ad21a2bbb3be5f0b9c24c03b5c80
src/com/android/settings/dashboard/conditional/DndCondition.java