[functions][android] add null check to logging

This commit is contained in:
Salakar 2018-05-06 13:08:33 +01:00
parent e5233c9af3
commit a767558f76
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ public class RNFirebaseFunctions extends ReactContextBaseJavaModule {
@ReactMethod @ReactMethod
public void httpsCallable(final String name, ReadableMap wrapper, final Promise promise) { public void httpsCallable(final String name, ReadableMap wrapper, final Promise promise) {
Object input = wrapper.toHashMap().get(DATA_KEY); Object input = wrapper.toHashMap().get(DATA_KEY);
Log.d(TAG, "function:call:input:" + name + ":" + input.toString()); Log.d(TAG, "function:call:input:" + name + ":" + (input != null ? input.toString() : "null"));
HttpsCallableReference httpsCallableReference = FirebaseFunctions HttpsCallableReference httpsCallableReference = FirebaseFunctions
.getInstance() .getInstance()