Closed Bug 375081 Opened 18 years ago Closed 18 years ago

ScriptRuntime.initStandardObjects() throws NullPointerException when no E4X implementation available

Categories

(Rhino Graveyard :: Core, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: hannesw, Unassigned)

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.1.2) Gecko/20060601 Firefox/2.0.0.2 (Ubuntu-edgy) Build Identifier: When none of the standard E4X implementations are available (e.g. Java 1.4 without XmlBeans), ScriptRuntime.initStandardObjects() throws a NullPointerException. A simple check for null allows Rhino to run without E4X support. Reproducible: Always Steps to Reproduce: ~/j2sdk1.4.2_10/bin/java -jar build/rhino1_6R6pre/js-head.jar Actual Results: Exception in thread "main" java.lang.NullPointerException at org.mozilla.javascript.ScriptRuntime.initStandardObjects(ScriptRuntime.java:184) at org.mozilla.javascript.Context.initStandardObjects(Context.java:1140) at org.mozilla.javascript.ImporterTopLevel.initStandardObjects(ImporterTopLevel.java:107) at org.mozilla.javascript.tools.shell.Global.init(Global.java:108) at org.mozilla.javascript.tools.shell.Global$1.run(Global.java:98) at org.mozilla.javascript.Context.call(Context.java:559) at org.mozilla.javascript.ContextFactory.call(ContextFactory.java:496) at org.mozilla.javascript.tools.shell.Global.init(Global.java:95) at org.mozilla.javascript.tools.shell.Main.exec(Main.java:158) at org.mozilla.javascript.tools.shell.Main.main(Main.java:140)
Sorry, I didn't see this one and independently discovered and fixed it. My patch is slightly different but awfully similar. :)
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Adding target milestone of 1.6R6 based on the date this bug was resolved FIXED.
Target Milestone: --- → 1.6R6
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: