mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Apply nullsafe FIXMEs for xplat/js/react-native-github/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/BaseJavaModule.java
Summary: Added nullsafe FIXMEs for easier reviewing of next diff, where we fix them Changelog: [Internal] Reviewed By: alanleedev Differential Revision: D72384074 fbshipit-source-id: de616024dcca4c2d14b329aa020267c8a3d0ee56
This commit is contained in:
committed by
Facebook GitHub Bot
parent
c8f01ffc3e
commit
34b1edfa1e
+1
@@ -118,6 +118,7 @@ public abstract class BaseJavaModule implements NativeModule {
|
||||
*/
|
||||
@ThreadConfined(ANY)
|
||||
protected @Nullable final ReactApplicationContext getReactApplicationContextIfActiveOrWarn() {
|
||||
// NULLSAFE_FIXME[Nullable Dereference]
|
||||
if (mReactApplicationContext.hasActiveReactInstance()) {
|
||||
return mReactApplicationContext;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user