You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Robert Dale (JIRA)" <ji...@apache.org> on 2017/04/26 02:27:04 UTC

[jira] [Resolved] (TINKERPOP-1666) NPE in FileSandboxExtension if staticVariableTypes is empty in supplied YAML file

     [ https://issues.apache.org/jira/browse/TINKERPOP-1666?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Dale resolved TINKERPOP-1666.
------------------------------------
    Resolution: Fixed

> NPE in FileSandboxExtension if staticVariableTypes is empty in supplied YAML file
> ---------------------------------------------------------------------------------
>
>                 Key: TINKERPOP-1666
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-1666
>             Project: TinkerPop
>          Issue Type: Bug
>          Components: groovy
>    Affects Versions: 3.2.4
>            Reporter: David Pitera
>            Assignee: stephen mallette
>            Priority: Minor
>             Fix For: 3.2.5
>
>
> Currently, we have code that assumes that this variable is not empty in the supplied YAML file:
> 1. https://github.com/apache/tinkerpop/blob/tp32/gremlin-groovy/src/main/groovy/org/apache/tinkerpop/gremlin/groovy/jsr223/customizer/FileSandboxExtension.groovy#L66 (We get an NPE if we call collectEntries() on a null object)
> 2. https://github.com/apache/tinkerpop/blob/tp32/gremlin-groovy/src/main/groovy/org/apache/tinkerpop/gremlin/groovy/jsr223/customizer/AbstractSandboxExtension.groovy#L54 (need to check if staticVariableTyping is null or we throw NPE trying to call containsKey() on a null object)
> I propose to add some null checks here so that users who do not wish to statically type any variables can now do so.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)