Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-29749

NPE from SCMTrigger if job is disabled

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • subversion-plugin
    • None
    • 1.622

      If a job contains a subversion polling trigger but is disabled then viewing or configuring the job page gives the below NPE. This does not occur if either

      1. the job is enabled
      2. the polling trigger is removed (but job remains disabled).

      I have not tried with other scm/trigger combinations.

      Aug 03, 2015 2:27:14 PM hudson.ExpressionFactory2$JexlExpression evaluate
      WARNING: Caught exception evaluating: action.displayName in /job/MARC/. Reason: java.lang.reflect.InvocationTargetException
      java.lang.reflect.InvocationTargetException
              at sun.reflect.GeneratedMethodAccessor540.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:606)
              at org.apache.commons.jexl.util.PropertyExecutor.execute(PropertyExecutor.java:125)
              at org.apache.commons.jexl.util.introspection.UberspectImpl$VelGetterImpl.invoke(UberspectImpl.java:314)
              at org.apache.commons.jexl.parser.ASTArrayAccess.evaluateExpr(ASTArrayAccess.java:185)
              at org.apache.commons.jexl.parser.ASTIdentifier.execute(ASTIdentifier.java:75)
              at org.apache.commons.jexl.parser.ASTReference.execute(ASTReference.java:83)
      ...
      Caused by: java.lang.NullPointerException
              at hudson.triggers.SCMTrigger$SCMAction.getDisplayName(SCMTrigger.java:422)
      

            Unassigned Unassigned
            drekbour Marc Carter
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: