diff options
author | Weijie Wang <weijiew@codeaurora.org> | 2018-11-13 15:38:13 +0800 |
---|---|---|
committer | Weijie Wang <weijiew@codeaurora.org> | 2018-11-13 15:38:13 +0800 |
commit | 66a58d008859260eb846eb96d47bf7197cc700c9 (patch) | |
tree | 48aa51f0bd6953646eab83ba3666de257e1a9dbf /rs/java/android/renderscript/ProgramVertexFixedFunction.java | |
parent | a057360bd2e6a01e55f1206675f9dc4044c0e5b5 (diff) |
SystemUI: Fix NPE when DozeService is destroied
When DozeService's host is not null, it can be created successful
and DozeService is added into PluginManagerImpl instance as a
PluginListener. When DozeService is stoped, it will be removed
from PluginManagerImpl instance.
When DozeService's host is null, PluginManagerImpl instance is
also null, it will cause NPE if trying to remove PluginListener
from PluginManagerImpl instance.
In this case, add null check to avoid NPE
Change-Id: I96c767d9e36c84926d5fb7f9cf2dc1a1c0ce2e08
CRs-Fixed: 2348040
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions