Skip to content

Commit 8e45380

Browse files
Fix potential NPE
1 parent fdccce5 commit 8e45380

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,10 @@ public void dispose() {
223223
softButtonCapabilities = null;
224224

225225
// Cancel the operations
226-
transactionQueue.close();
227-
transactionQueue = null;
226+
if (transactionQueue != null) {
227+
transactionQueue.close();
228+
transactionQueue = null;
229+
}
228230

229231
// Remove listeners
230232
internalInterface.removeOnRPCNotificationListener(FunctionID.ON_HMI_STATUS, onHMIStatusListener);

0 commit comments

Comments
 (0)