[ 
https://issues.apache.org/jira/browse/ASTERIXDB-1867?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15952525#comment-15952525
 ] 

ASF subversion and git services commented on ASTERIXDB-1867:
------------------------------------------------------------

Commit ff915a9ec1b0abcb1084545ac2ba6bd4362e476b in asterixdb's branch 
refs/heads/master from [~wangsaeu]
[ https://git-wip-us.apache.org/repos/asf?p=asterixdb.git;h=ff915a9 ]

Fix ASTERIXDB-1867: get Plan String only when context is not null

 - Fix AbstractRuleController so that getPlanString() is
   only executed when context is not null.

Change-Id: I4c4dfb50f16c48e4b09e8148d13f0debbd2de659
Reviewed-on: https://asterix-gerrit.ics.uci.edu/1651
Reviewed-by: Xikui Wang <[email protected]>
Sonar-Qube: Jenkins <[email protected]>
Tested-by: Jenkins <[email protected]>
BAD: Jenkins <[email protected]>
Integration-Tests: Jenkins <[email protected]>


> SequentialFirstRuleCheckFixpointRuleController has null context
> ---------------------------------------------------------------
>
>                 Key: ASTERIXDB-1867
>                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-1867
>             Project: Apache AsterixDB
>          Issue Type: Bug
>            Reporter: Xikui Wang
>            Assignee: Taewoo Kim
>
> When executing SequentialFirstRuleCheckFixpointRuleControllerTest, the 
> SequentialFirstRuleCheckFixpointRuleController has a null context which 
> causes NPE at:
> org/apache/hyracks/algebricks/core/rewriter/base/AbstractRuleController.java:69
> {noformat}
> Error Message:
> Running 
> org.apache.hyracks.algebricks.compiler.rewriter.rulecontrollers.SequentialFirstRuleCheckFixpointRuleControllerTest
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.109 sec <<< 
> FAILURE! - in 
> org.apache.hyracks.algebricks.compiler.rewriter.rulecontrollers.SequentialFirstRuleCheckFixpointRuleControllerTest
> testRewriteWithRuleCollection(org.apache.hyracks.algebricks.compiler.rewriter.rulecontrollers.SequentialFirstRuleCheckFixpointRuleControllerTest)
>   Time elapsed: 0.73 sec  <<< ERROR!
> java.lang.NullPointerException: null
>       at 
> org.apache.hyracks.algebricks.core.rewriter.base.AbstractRuleController.getPlanString(AbstractRuleController.java:70)
>       at 
> org.apache.hyracks.algebricks.core.rewriter.base.AbstractRuleController.rewriteOperatorRef(AbstractRuleController.java:90)
>       at 
> org.apache.hyracks.algebricks.compiler.rewriter.rulecontrollers.SequentialFirstRuleCheckFixpointRuleController.rewriteWithRuleCollection(SequentialFirstRuleCheckFixpointRuleController.java:76)
>       at 
> org.apache.hyracks.algebricks.compiler.rewriter.rulecontrollers.SequentialFirstRuleCheckFixpointRuleControllerTest.testRewriteWithRuleCollection(SequentialFirstRuleCheckFixpointRuleControllerTest.java:73)
> Results :
> Tests in error:
>   
> SequentialFirstRuleCheckFixpointRuleControllerTest.testRewriteWithRuleCollection:73
>  ยป NullPointer
> {noformat}



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

Reply via email to