[ https://issues.apache.org/jira/browse/IMPERIUS-16?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
David Wood updated IMPERIUS-16: ------------------------------- Description: The following policy causes an error message to be issued during parse (semi at the end of the decision), but does not throw an exception and returns an SPLPolicy object. When evaluating the resulting policy, a NullPointerException is thrown because SPLPolicy._decision is null (presumably as a result of the failed parse). Import Class java.lang.StringBuffer:stringbuffer; Strategy Execute_All_Applicable; Policy { Condition { stringbuffer.toString() == "foobar" } Decision { stringbuffer.append("a"); } }:1; Perhaps the relevant error messages during parse, are the following: <AST>: expecting ELIST, found '<empty tree>' dummy:11:33: unexpected token: ; <AST>:0:0: unexpected end of subtree <AST>: expecting ELIST, found '<empty tree>' was: The following policy causes an error message to be issued during parse (semi at the end of the decision), but does not throw an exception and returns an SPLPolicy object. When evaluating the resulting policy, a NullPointerException is thrown because SPLPolicy._decision is null (presumably as a result of the failed parse). Import Class java.lang.StringBuffer:stringbuffer; Strategy Execute_All_Applicable; Policy { Condition { stringbuffer.toString() == "foobar" } Decision { stringbuffer.append("a"); } }:1; Perhaps the relevant error messages during parse, are the following: > Parse error on decision results in policy object with null decision field > ------------------------------------------------------------------------- > > Key: IMPERIUS-16 > URL: https://issues.apache.org/jira/browse/IMPERIUS-16 > Project: Imperius > Issue Type: Bug > Environment: Windows XP > Reporter: David Wood > Assignee: Bill Stoddard > Priority: Minor > > The following policy causes an error message to be issued during parse (semi > at the end of the decision), but does not throw an exception and returns an > SPLPolicy object. When evaluating the resulting policy, a > NullPointerException is thrown because SPLPolicy._decision is null > (presumably as a result of the failed parse). > Import Class java.lang.StringBuffer:stringbuffer; > Strategy Execute_All_Applicable; > Policy > { > Condition > { > stringbuffer.toString() == "foobar" > } > Decision > { > stringbuffer.append("a"); > } > }:1; > Perhaps the relevant error messages during parse, are the following: > <AST>: expecting ELIST, found '<empty tree>' > dummy:11:33: unexpected token: ; > <AST>:0:0: unexpected end of subtree > <AST>: expecting ELIST, found '<empty tree>' -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.