We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b384a7c commit 658f870Copy full SHA for 658f870
firebase-crashlytics/src/main/java/com/google/firebase/crashlytics/FirebaseCrashlytics.java
@@ -205,6 +205,11 @@ public static FirebaseCrashlytics getInstance() {
205
* @param throwable a {@link Throwable} to be recorded as a non-fatal event.
206
*/
207
public void recordException(@NonNull Throwable throwable) {
208
+ if (throwable == null) { // Users could call this with null despite the annotation.
209
+ Logger.getLogger().w("A null value was passed to recordException. Ignoring.");
210
+ return;
211
+ }
212
+
213
core.logException(throwable, Map.of());
214
}
215
0 commit comments