[ https://issues.apache.org/jira/browse/PIG-810?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gunther Hagleitner updated PIG-810: ----------------------------------- Attachment: null_pointer.patch Ran into the same issue. I have a similar fix, but I also added a unit test, in case you're interested. > Scripts failing with NPE > ------------------------ > > Key: PIG-810 > URL: https://issues.apache.org/jira/browse/PIG-810 > Project: Pig > Issue Type: Bug > Affects Versions: 0.3.0 > Reporter: Alan Gates > Assignee: Alan Gates > Fix For: 0.3.0 > > Attachments: null_pointer.patch, PIG-810.patch > > > Scripts such as: > {code} > a = load 'nosuchfile'; > b = store a into 'bla'; > {code} > are failing with > {code} > ERROR 2043: Unexpected error during execution. > org.apache.pig.backend.executionengine.ExecException: ERROR 2043: Unexpected > error during execution. > at > org.apache.pig.backend.hadoop.executionengine.HExecutionEngine.execute(HExecutionEngine.java:275) > at > org.apache.pig.PigServer.executeCompiledLogicalPlan(PigServer.java:757) > at org.apache.pig.PigServer.execute(PigServer.java:750) > at org.apache.pig.PigServer.access$100(PigServer.java:88) > at org.apache.pig.PigServer$Graph.execute(PigServer.java:917) > at org.apache.pig.PigServer.executeBatch(PigServer.java:242) > at > org.apache.pig.tools.grunt.GruntParser.executeBatch(GruntParser.java:110) > at > org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:151) > at > org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:123) > at org.apache.pig.tools.grunt.Grunt.exec(Grunt.java:88) > at org.apache.pig.Main.main(Main.java:372) > Caused by: java.lang.NullPointerException > at > org.apache.pig.tools.pigstats.PigStats.accumulateMRStats(PigStats.java:175) > at > org.apache.pig.tools.pigstats.PigStats.accumulateStats(PigStats.java:94) > at > org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MapReduceLauncher.launchPig(MapReduceLauncher.java:148) > at > org.apache.pig.backend.hadoop.executionengine.HExecutionEngine.execute(HExecutionEngine.java:262) > ... 10 more > {code} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.