Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

bindingsEngine.containsKey throws Exception when key is not found #7

Open
@mslinn

Description

If no variable called ten is defined, the following Scala code throws java.lang.NullPointerException:

new ScriptEngineManager()
 .getEngineByName("clojure")
 .getContext
 .getBindings(ScriptContext.ENGINE_SCOPE)
 .containsKey("ten")

Similar code works for scripting-scala. However, this bug can is also present for scripting-java

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /