You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Xuefu Zhang (JIRA)" <ji...@apache.org> on 2011/04/23 19:32:05 UTC

[jira] [Reopened] (PIG-2006) Regression: NPE when Pig processes an empty script file

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

Xuefu Zhang reopened PIG-2006:
------------------------------


The newly added test case fails when running as part of unit test set.

> Regression: NPE when Pig processes an empty script file
> -------------------------------------------------------
>
>                 Key: PIG-2006
>                 URL: https://issues.apache.org/jira/browse/PIG-2006
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.9.0
>            Reporter: Xuefu Zhang
>            Assignee: Xuefu Zhang
>             Fix For: 0.9.0
>
>         Attachments: PIG-2006.patch
>
>
> If a pig script file is empty and supplied as input for Pig (using -f option), an NPE is thrown. Stacktrace:
> java.lang.NullPointerException
>         at java.util.regex.Matcher.getTextLength(Matcher.java:1140)
>         at java.util.regex.Matcher.reset(Matcher.java:291)
>         at java.util.regex.Matcher.<init>(Matcher.java:211)
>         at java.util.regex.Pattern.matcher(Pattern.java:888)
>         at org.apache.pig.scripting.ScriptEngine$SupportedScriptLang.accepts(ScriptEngine.java:89)
>         at org.apache.pig.scripting.ScriptEngine.getSupportedScriptLang(ScriptEngine.java:163)
>         at org.apache.pig.Main.determineScriptType(Main.java:892)
>         at org.apache.pig.Main.run(Main.java:378)
>         at org.apache.pig.Main.main(Main.java:108)
> This seems related Jython support in 0.9.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira