@@ -455,7 +455,7 @@ public void setFileAttachment(String fileUri, String fileNameWithExtension) {
455455 public void sendJSCrash (String exceptionObject ) {
456456 try {
457457 JSONObject jsonObject = new JSONObject (exceptionObject );
458- sendJSCrashByReflection (jsonObject , false , null );
458+ sendJSCrashByReflection (jsonObject , false );
459459 } catch (Exception e ) {
460460 e .printStackTrace ();
461461 }
@@ -470,7 +470,7 @@ public void sendJSCrash(String exceptionObject) {
470470 public void sendHandledJSCrash (String exceptionObject ) {
471471 try {
472472 JSONObject jsonObject = new JSONObject (exceptionObject );
473- sendJSCrashByReflection (jsonObject , true , null );
473+ sendJSCrashByReflection (jsonObject , true );
474474 } catch (Exception e ) {
475475 e .printStackTrace ();
476476 }
@@ -494,11 +494,11 @@ public void setCrashReportingEnabled(boolean isEnabled) {
494494 }
495495 }
496496
497- private void sendJSCrashByReflection (JSONObject exceptionObject , boolean isHandled , Report report ) {
497+ private void sendJSCrashByReflection (JSONObject exceptionObject , boolean isHandled ) {
498498 try {
499- Method method = getMethod (Class .forName ("com.instabug.crash.CrashReporting" ), "reportException" , JSONObject .class , boolean .class , Report . class );
499+ Method method = getMethod (Class .forName ("com.instabug.crash.CrashReporting" ), "reportException" , JSONObject .class , boolean .class );
500500 if (method != null ) {
501- method .invoke (null , exceptionObject , isHandled , currentReport );
501+ method .invoke (null , exceptionObject , isHandled );
502502 currentReport = null ;
503503 }
504504 } catch (ClassNotFoundException e ) {
0 commit comments