[HtmlUnit] SVN: [13826] trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/ html/DomElement.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[HtmlUnit] SVN: [13826] trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/ html/DomElement.java

asashour-2
Revision: 13826
          http://sourceforge.net/p/htmlunit/code/13826
Author:   asashour
Date:     2017-03-19 18:19:22 +0000 (Sun, 19 Mar 2017)
Log Message:
-----------
fixing build

Modified Paths:
--------------
    trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/html/DomElement.java

Modified: trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/html/DomElement.java
===================================================================
--- trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/html/DomElement.java 2017-03-19 18:11:52 UTC (rev 13825)
+++ trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/html/DomElement.java 2017-03-19 18:19:22 UTC (rev 13826)
@@ -1390,7 +1390,11 @@
             }
         };
 
-        final ContextFactory cf = client.getJavaScriptEngine().getContextFactory();
+        final JavaScriptEngine engine = client.getJavaScriptEngine();
+        if (engine == null) {
+            return null;
+        }
+        final ContextFactory cf = engine.getContextFactory();
         final ScriptResult result = (ScriptResult) cf.call(action);
         if (event.isAborted(result)) {
             preventDefault();


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
HtmlUnit-develop mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/htmlunit-develop