incubator-imperius-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Wood (JIRA)" <j...@apache.org>
Subject [jira] Created: (IMPERIUS-16) Parse error on decision results in policy object with null decision field
Date Tue, 26 Aug 2008 14:32:44 GMT
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:


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message