@@ -455,7 +455,7 @@ public void setFileAttachment(String fileUri, String fileNameWithExtension) {
455
455
public void sendJSCrash (String exceptionObject ) {
456
456
try {
457
457
JSONObject jsonObject = new JSONObject (exceptionObject );
458
- sendJSCrashByReflection (jsonObject , false , null );
458
+ sendJSCrashByReflection (jsonObject , false );
459
459
} catch (Exception e ) {
460
460
e .printStackTrace ();
461
461
}
@@ -470,7 +470,7 @@ public void sendJSCrash(String exceptionObject) {
470
470
public void sendHandledJSCrash (String exceptionObject ) {
471
471
try {
472
472
JSONObject jsonObject = new JSONObject (exceptionObject );
473
- sendJSCrashByReflection (jsonObject , true , null );
473
+ sendJSCrashByReflection (jsonObject , true );
474
474
} catch (Exception e ) {
475
475
e .printStackTrace ();
476
476
}
@@ -494,11 +494,11 @@ public void setCrashReportingEnabled(boolean isEnabled) {
494
494
}
495
495
}
496
496
497
- private void sendJSCrashByReflection (JSONObject exceptionObject , boolean isHandled , Report report ) {
497
+ private void sendJSCrashByReflection (JSONObject exceptionObject , boolean isHandled ) {
498
498
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 );
500
500
if (method != null ) {
501
- method .invoke (null , exceptionObject , isHandled , currentReport );
501
+ method .invoke (null , exceptionObject , isHandled );
502
502
currentReport = null ;
503
503
}
504
504
} catch (ClassNotFoundException e ) {
0 commit comments