Skip to content

Commit 8ce75c2

Browse files
committed
Analysis: Resolve unsafe use of a nullable receiver type warning
Warning Message: "Unsafe use of a nullable receiver of type Window?"
1 parent f0f47f0 commit 8ce75c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aztec/src/main/kotlin/org/wordpress/aztec/AztecText.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2083,8 +2083,8 @@ open class AztecText : AppCompatEditText, TextWatcher, UnknownHtmlSpan.OnUnknown
20832083

20842084
unknownBlockSpanStart = text.getSpanStart(unknownHtmlSpan)
20852085
blockEditorDialog = builder.create()
2086-
blockEditorDialog!!.window.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE)
2087-
blockEditorDialog!!.show()
2086+
blockEditorDialog?.window?.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE)
2087+
blockEditorDialog?.show()
20882088
}
20892089

20902090
private fun deleteInlineStyleFromTheBeginning() {

0 commit comments

Comments
 (0)