android/source/src/java/org/libreoffice/overlay/DocumentOverlay.java | 3 --- 1 file changed, 3 deletions(-)
New commits: commit f4e5b41b530f0b1feb067a387ba6b491e4a15f39 Author: Michael Weghorn <[email protected]> AuthorDate: Tue Nov 11 13:41:11 2025 +0100 Commit: Michael Weghorn <[email protected]> CommitDate: Wed Nov 12 01:42:04 2025 +0100 android: Drop unnecessary null check If this were null, the log output wouldn't be particularly useful, as a NullPointerException would occur just a few lines further down anyway. Change-Id: If40afbc5ed678c30a41a42c69b7d9678efda2ae4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193803 Tested-by: Jenkins Reviewed-by: Michael Weghorn <[email protected]> diff --git a/android/source/src/java/org/libreoffice/overlay/DocumentOverlay.java b/android/source/src/java/org/libreoffice/overlay/DocumentOverlay.java index f977866a282e..15396388876b 100644 --- a/android/source/src/java/org/libreoffice/overlay/DocumentOverlay.java +++ b/android/source/src/java/org/libreoffice/overlay/DocumentOverlay.java @@ -69,9 +69,6 @@ public class DocumentOverlay { public DocumentOverlay(LibreOfficeMainActivity context, LayerView layerView) { mDocumentOverlayView = context.findViewById(R.id.text_cursor_view); mDocumentOverlayLayer = new DocumentOverlayLayer(); - if (mDocumentOverlayView == null) { - Log.e(LOGTAG, "Failed to initialize TextCursorLayer - CursorView is null"); - } layerView.addLayer(mDocumentOverlayLayer); mDocumentOverlayView.initialize(layerView); }
