[
https://issues.apache.org/jira/browse/PIG-2006?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13023455#comment-13023455
]
Xuefu Zhang commented on PIG-2006:
----------------------------------
Test-patch run:
[exec] +1 overall.
[exec]
[exec] +1 @author. The patch does not contain any @author tags.
[exec]
[exec] +1 tests included. The patch appears to include 3 new or
modified tests.
[exec]
[exec] +1 javadoc. The javadoc tool did not generate any warning
messages.
[exec]
[exec] +1 javac. The applied patch does not increase the total number
of javac compiler warnings.
[exec]
[exec] +1 findbugs. The patch does not introduce any new Findbugs
warnings.
[exec]
[exec] +1 release audit. The applied patch does not increase the
total number of release audit warnings.
> 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