Skip to content

Crash: ClassCastException in SendShareDialogDownloader when clicking send/share button #17449

Closed

Description

@snoopykill

⚠️ Before posting ⚠️

  • This is a bug, not a question or an enhancement.
  • I've searched for similar issues and didn't find a duplicate.
  • I've written a clear and descriptive title for this issue, not just "Bug" or "Crash".
  • I agree to follow Nextcloud's Code of Conduct.

Steps to reproduce

  1. Open the Nextcloud app and open video file
  2. Trigger the file sharing dialog Send/Share.
  3. Select Telegram
  4. The app crashes with a "Loading..." screen overlay and a stacktrace.
Image

Expected behaviour

The file should be shared successfully without crashing the application.

Actual behaviour

The app encounters a critical ClassCastException and terminates.

Android version

11

Device brand and model

motorola one vision

Stock or custom OS?

Stock

Nextcloud android app version

340010090 (Build flavor: gplay)

Nextcloud server version

34.0.2.1

Using a reverse proxy?

Yes

Android logs

Exception in thread "main"
java.lang.ClassCastException: com.owncloud.android.ui.preview.PreviewImageActivity cannot be cast to com.owncloud.android.ui.dialog.SendShareDialog\$SendShareDialogDownloader
    at com.owncloud.android.ui.dialog.SendShareDialog.onSendButtonClick(SendShareDialog.kt:233)
    at com.owncloud.android.ui.adapter.sendButton.SendButtonAdapter\$ViewHolder.onClick(SendButtonAdapter.kt:53)

Server error logs

Additional information

No response

Activity

  1. alperozturk96 commented on Aug 7, 2026

    @alperozturk96
    Collaborator

    fixed via #17410

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions