Skip to content

Commit a01a978

Browse files
GijsWeteringsfacebook-github-bot
authored andcommitted
[skip ci] Apply Nullsafe FIXMEs for xplat/js/react-native-github/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/devsupport/DebugOverlayController.java (#50063)
Summary: Note this diff is only adding FIXMEs that will be removed in the next diff. This diff exists to make the next diff easily reviewable Changelog: [Internal] Reviewed By: mdvacca Differential Revision: D71126397
1 parent a44fda8 commit a01a978

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/devsupport/DebugOverlayController.java

+2
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ private static boolean hasPermission(Context context, String permission) {
5757
PackageInfo info =
5858
context
5959
.getPackageManager()
60+
// NULLSAFE_FIXME[Nullable Dereference]
6061
.getPackageInfo(context.getPackageName(), PackageManager.GET_PERMISSIONS);
6162
if (info.requestedPermissions != null) {
6263
for (String p : info.requestedPermissions) {
@@ -73,6 +74,7 @@ private static boolean hasPermission(Context context, String permission) {
7374

7475
private static boolean canHandleIntent(Context context, Intent intent) {
7576
PackageManager packageManager = context.getPackageManager();
77+
// NULLSAFE_FIXME[Parameter Not Nullable]
7678
return intent.resolveActivity(packageManager) != null;
7779
}
7880

0 commit comments

Comments
 (0)