diff options
author | Julian Kast <julian@livio.com> | 2021-09-23 09:51:26 -0400 |
---|---|---|
committer | Julian Kast <julian@livio.com> | 2021-09-23 09:51:26 -0400 |
commit | 43eb7cea3f7b1cc56945e93bcd0f647833f633f9 (patch) | |
tree | c4feff841a34588342ef17aca004e485b00a4546 | |
parent | ffa3e13e14aec7f2a4a03e8cff9ec44ef33416ce (diff) | |
download | sdl_android-43eb7cea3f7b1cc56945e93bcd0f647833f633f9.tar.gz |
Fix NPEbugfix/issue_1729
-rw-r--r-- | base/src/main/java/com/smartdevicelink/managers/lifecycle/BaseSystemCapabilityManager.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/base/src/main/java/com/smartdevicelink/managers/lifecycle/BaseSystemCapabilityManager.java b/base/src/main/java/com/smartdevicelink/managers/lifecycle/BaseSystemCapabilityManager.java index e76189632..33a778e58 100644 --- a/base/src/main/java/com/smartdevicelink/managers/lifecycle/BaseSystemCapabilityManager.java +++ b/base/src/main/java/com/smartdevicelink/managers/lifecycle/BaseSystemCapabilityManager.java @@ -137,7 +137,7 @@ abstract class BaseSystemCapabilityManager { List<String> templatesAvailable = display.getTemplatesAvailable(); if (templatesAvailable != null) { for (int i = 0; i < templatesAvailable.size(); i++) { - if (templatesAvailable.get(i).equals("NON_MEDIA")) { + if ("NON_MEDIA".equals(templatesAvailable.get(i))) { templatesAvailable.set(i, "NON-MEDIA"); break; } |