Skip to content

Commit 83e3873

Browse files
committed
wrap with ? call for nullable variable
1 parent 41c1d7f commit 83e3873

File tree

1 file changed

+1
-1
lines changed
  • plugins/amazonq/codewhisperer/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codewhisperer/popup

1 file changed

+1
-1
lines changed

plugins/amazonq/codewhisperer/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codewhisperer/popup/CodeWhispererPopupManager.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ class CodeWhispererPopupManager {
243243
states.requestContext.latencyContext.getPerceivedLatency(states.requestContext.triggerTypeInfo.triggerType)
244244
}
245245
if (!isRecommendationAdded) {
246-
showPopup(states, sessionContext, states.popup, visible = sessionContext.isPopupShowing)
246+
states.popup?.let { showPopup(states, sessionContext, it, visible = sessionContext.isPopupShowing) }
247247
}
248248
}
249249

0 commit comments

Comments
 (0)