This is an automated email from the ASF dual-hosted git repository.

aharui pushed a commit to branch feature/MXRoyale
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git

commit c93a85de5ac9d8f3e0d52700e1ba820d712215b0
Author: Alex Harui <[email protected]>
AuthorDate: Thu Mar 22 14:24:50 2018 -0700

    handle no initialView
---
 mustella/src/main/java/marmotinni/TestStep.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/mustella/src/main/java/marmotinni/TestStep.java 
b/mustella/src/main/java/marmotinni/TestStep.java
index 8d964e7..e0c07c6 100644
--- a/mustella/src/main/java/marmotinni/TestStep.java
+++ b/mustella/src/main/java/marmotinni/TestStep.java
@@ -103,7 +103,8 @@ public class TestStep {
        {
                sb.append("var target = 
document.getElementsByTagName('body')[0];");
                sb.append("target = target.royale_wrapper;");
-               sb.append("target = target.initialView;");
+               sb.append("if (target.initialView)");
+        sb.append("  target = target.initialView;");
                if (target == null || target.length() == 0)
                {
                        return;

-- 
To stop receiving notification emails like this one, please contact
[email protected].

Reply via email to