Skip to content

Commit fed6c49

Browse files
fix: masking private views
1 parent 27c46cc commit fed6c49

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

android/src/main/java/com/instabug/reactlibrary/RNInstabugReactnativeModule.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -989,7 +989,9 @@ public void run() {
989989
try {
990990
final View view = resolveReactView(reactTag);
991991

992+
if(view !=null){
992993
Instabug.addPrivateViews(view);
994+
}
993995
} catch (Exception e) {
994996
e.printStackTrace();
995997
}
@@ -1004,8 +1006,10 @@ public void removePrivateView(final int reactTag) {
10041006
public void run() {
10051007
try {
10061008
final View view = resolveReactView(reactTag);
1009+
if(view !=null){
10071010

10081011
Instabug.removePrivateViews(view);
1012+
}
10091013
} catch (Exception e) {
10101014
e.printStackTrace();
10111015
}

0 commit comments

Comments
 (0)