Browse Source

Avoid NPR in SET (#3115)

Varun Gupta 6 years ago
parent
commit
3b9f6bfbbf

+ 1
- 1
android/app/src/main/java/com/reactnativenavigation/views/sharedElementTransition/SharedElements.java View File

134
         Iterator<String> iterator = toElements.keySet().iterator();
134
         Iterator<String> iterator = toElements.keySet().iterator();
135
         while (iterator.hasNext()) {
135
         while (iterator.hasNext()) {
136
             String key = iterator.next();
136
             String key = iterator.next();
137
-            if (!ViewVisibilityChecker.check(toElements.get(key))) {
137
+            if (!ViewVisibilityChecker.check(toElements.get(key)) && fromElements.get(key) != null) {
138
                 iterator.remove();
138
                 iterator.remove();
139
                 fromElements.get(key).show();
139
                 fromElements.get(key).show();
140
             }
140
             }