diff --git a/src/main/java/org/thoughtcrime/securesms/qr/QrShowFragment.java b/src/main/java/org/thoughtcrime/securesms/qr/QrShowFragment.java index 0b846319c..398277049 100644 --- a/src/main/java/org/thoughtcrime/securesms/qr/QrShowFragment.java +++ b/src/main/java/org/thoughtcrime/securesms/qr/QrShowFragment.java @@ -96,6 +96,12 @@ public class QrShowFragment extends Fragment implements DcEventCenter.DcEventDel imageView.setSVG(svg); } catch (SVGParseException e) { e.printStackTrace(); + } catch (Exception e) { + e.printStackTrace(); + Activity activity = getActivity(); + if (activity != null) { + activity.finish(); + } } view.findViewById(R.id.share_link_button).setOnClickListener((v) -> showInviteLinkDialog());