Prevent NPE in QSLogger
This prevents an NPE that was crashing CTS tests. Test: atest CtsAppTestCases:TileServiceTest Test: atest BooleanTileTest Fixes: 149475098 Fixes: 149476175 Change-Id: I806bfd881772f2e229d595aaf68f5e3782c51f6b
This commit is contained in:
@@ -105,8 +105,8 @@ class QSLogger @Inject constructor(
|
||||
fun logTileUpdated(tileSpec: String, state: QSTile.State) {
|
||||
log(VERBOSE, {
|
||||
str1 = tileSpec
|
||||
str2 = state.label.toString()
|
||||
str3 = state.icon.toString()
|
||||
str2 = state.label?.toString()
|
||||
str3 = state.icon?.toString()
|
||||
int1 = state.state
|
||||
if (state is QSTile.SignalState) {
|
||||
bool1 = true
|
||||
|
||||
Reference in New Issue
Block a user