Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-15643

NullPointerException when editing an existing Permission Condition or Permission Validator

    XMLWordPrintable

Details

    Description

      Editing an existing "Permission Condition" condition results in a NPE. This appears to occure regardless of the permission selected.

      2008-09-22 14:42:10,062 http-8080-Processor25 ERROR [velocity] Method getText threw exception for reference $i18n in template templates/jira/workflow/com/atlassian/jira/plugin/permission-condition-edit-params.vm at  [7,14]
      2008-09-22 14:42:10,062 http-8080-Processor25 ERROR [com.atlassian.velocity.DefaultVelocityManager] MethodInvocationException occurred getting message body from Velocity: java.lang.NullPointerException
      java.lang.NullPointerException
      	at com.atlassian.jira.web.bean.I18nBean._getUnescapedText(I18nBean.java:245)
      	at com.atlassian.jira.web.bean.I18nBean.getText(I18nBean.java:199)
      	at com.atlassian.jira.web.bean.I18nBean.getText(I18nBean.java:124)
      	at sun.reflect.GeneratedMethodAccessor45.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:267)
      	at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:197)
      	at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:175)
      	at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:220)
      	at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55)
      	at org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:166)
      	at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:114)
      	at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230)
      	at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:172)
      	at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:114)
      	at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230)
      	at org.apache.velocity.Template.merge(Template.java:256)
      	at org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:450)
      	at com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:77)
      	at com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:61)
      	at com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:56)
      	at com.atlassian.jira.plugin.JiraResourcedModuleDescriptor.getHtml(JiraResourcedModuleDescriptor.java:97)
      	at com.atlassian.jira.plugin.workflow.WorkflowConditionModuleDescriptor.getHtml(WorkflowConditionModuleDescriptor.java:29)
      	at com.atlassian.jira.web.action.admin.workflow.AbstractEditWorkflowTransitionDescriptorParams.getDescriptorHtml(AbstractEditWorkflowTransitionDescriptorParams.java:204)
      ...
      

      Steps to Reproduce:

      1. Copy the "jira" read only system workflow.
      2. Select "Steps"
      3. Select the "Start Progress" transition
      4. Select the "Conditions" tab
      5. Select "Add"
      6. Select "Permission Condition"
      7. Select "Administer Projects"
      8. Select "Edit" on the added condition.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jappel Jonathan Appel [Atlassian]
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: