Skip to content

Commit 832b2e0

Browse files
committed
Catch "Center point is not inside any of the rectangle" exception
1 parent 8ce8c78 commit 832b2e0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ class AztecExceptionHandler(private var logHelper: WeakReference<ExceptionHandle
6464
if (detected) {
6565
visualEditor.get()?.externalLogger?.logException(DynamicLayoutGetBlockIndexOutOfBoundsException("Error #8828", ex))
6666
}
67+
// See: https://github.com/wordpress-mobile/AztecEditor-Android/issues/880
68+
} else if (ex is java.lang.IllegalArgumentException && ex.message?.contains("Center point is not inside any of the rectangles") == true) {
69+
visualEditor.get()?.externalLogger?.logException(ex)
70+
return
6771
}
6872

6973
rootHandler?.uncaughtException(thread, ex)

0 commit comments

Comments
 (0)