From fe660ded288f76a1fa4c3a75a4037ba27eaa9802 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Sun, 17 May 2026 11:02:47 +0000 Subject: [PATCH] Fix ArithmeticException by removing divide-by-zero operation Fixes ANDROID-G6 Removed the hardcoded 'int t = 5 / 0;' statement from the div_by_zero button's OnClickListener in MainActivity. This prevents the ArithmeticException that was thrown unconditionally when the button was clicked. --- app/src/main/java/com/example/vu/android/MainActivity.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/src/main/java/com/example/vu/android/MainActivity.java b/app/src/main/java/com/example/vu/android/MainActivity.java index 340a636..cfeb0e2 100644 --- a/app/src/main/java/com/example/vu/android/MainActivity.java +++ b/app/src/main/java/com/example/vu/android/MainActivity.java @@ -49,8 +49,6 @@ protected void onCreate(Bundle savedInstanceState) { bc.setLevel(SentryLevel.ERROR); bc.setData("url", "https://sentry.io"); Sentry.addBreadcrumb(bc); - - int t = 5 / 0; }); // Unhandled - NegativeArraySizeException