We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7fe17f8 commit 309a00cCopy full SHA for 309a00c
1 file changed
src/org/labkey/test/components/Component.java
@@ -27,6 +27,7 @@
27
28
import java.util.ArrayList;
29
import java.util.List;
30
+import java.util.Objects;
31
import java.util.Optional;
32
import java.util.function.Function;
33
@@ -69,8 +70,9 @@ protected EC elementCache()
69
70
// Pass if element doesn't exist. Might be checking if component is visible.
71
}
72
- _elementCache = newElementCache();
73
+ _elementCache = Objects.requireNonNull(newElementCache());
74
waitForReady();
75
+ Objects.requireNonNull(_elementCache, "waitForReady() cleared the element cache");
76
77
return _elementCache;
78
0 commit comments