Commit ce9ce6f4 authored by Libin Lu's avatar Libin Lu Committed by GitHub

catch params parsing error "UserHandler"

parent 5563cf29
......@@ -121,7 +121,12 @@ public class FIRMessagingModule extends ReactContextBaseJavaModule implements Li
WritableMap params;
Bundle extras = newIntent.getExtras();
if (extras != null) {
try {
params = Arguments.fromBundle(extras);
} catch (Exception e){
Log.e(TAG, e.getMessage());
params = Arguments.createMap();
}
} else {
params = Arguments.createMap();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment