Bladeren bron

fix npe in sliding overlay (#899)

Varun Gupta 7 jaren geleden
bovenliggende
commit
478001bedd

+ 4
- 0
android/app/src/main/java/com/reactnativenavigation/views/slidingOverlay/SlidingOverlaysQueue.java Bestand weergeven

@@ -43,6 +43,10 @@ public class SlidingOverlaysQueue implements SlidingOverlay.SlidingListener{
43 43
             public void run() {
44 44
                 SlidingOverlay currentOverlay = queue.peek();
45 45
 
46
+                if(currentOverlay == null) {
47
+                    return;
48
+                }
49
+                
46 50
                 if (currentOverlay.isShowing()) {
47 51
                     pendingHide = true;
48 52
                 }