Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug that prevents from disabling the proxy #1841

Merged
merged 1 commit into from
Nov 17, 2021

Conversation

Fresh-D101
Copy link
Contributor

Description

  • Relevant Issues : When trying to deactivate the proxy by calling karate.configure('proxy', null), the following error occurs: org.graalvm.polyglot.PolyglotException: Cannot invoke "java.util.Map.get(java.lang.Object)" because "map" is null.
    This is because in the code, the varible type itself is checked if null -> if (value == null). Since that is never the case, the value is by default eveluated as a map, which results in the error.
    Instead, it needs to be checked if the type within the Variable wrapper has been set to NULL. -> if (value.isNull()).

  • Type of change :

    • New feature
    • Bug fix for existing feature
    • Code quality improvement
    • Addition or Improvement of tests
    • Addition or Improvement of documentation

@ptrthomas
Copy link
Member

@Fresh-D101 thanks ! I'm good with this. please go ahead with final

@Fresh-D101 Fresh-D101 marked this pull request as ready for review November 17, 2021 15:26
@ptrthomas ptrthomas merged commit 0e8b810 into karatelabs:develop Nov 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants