Skip to content

Commit 5d28384

Browse files
Julian KastRHenigan
authored andcommitted
Add check for NPE in SoftButtonReplaceOperation
1 parent 0bda034 commit 5d28384

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/src/main/java/com/smartdevicelink/managers/screen/SoftButtonReplaceOperation.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ private boolean allCurrentStateImagesAreUploaded() {
304304
}
305305

306306
private boolean supportsSoftButtonImages() {
307-
return softButtonCapabilities.getImageSupported();
307+
return softButtonCapabilities != null ? Boolean.TRUE.equals(softButtonCapabilities.getImageSupported()) : false;
308308
}
309309

310310
void setCurrentMainField1(String currentMainField1) {

0 commit comments

Comments
 (0)