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

View selected file in pipeline syntax editor fails with NPE

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • Jenkins 2.319.1-rc, config file provider plugin 3.8.1 and development versions

      If I select a configuration file from the Pipeline Syntax Snippet Generator section for configFileProvider, it places the file in the pick list. Below the pick list is a link to "View selected file". When I click that link, a null pointer exception is written to the Jenkins log. The exception is:

      Nov 20, 2021 7:23:44 PM WARNING hudson.init.impl.InstallUncaughtExceptionHandler handleException
      Caught unhandled exception with ID 548f3885-aa27-4cd9-9024-3bf46dc880e6
      java.lang.NullPointerException
      	at org.jenkinsci.plugins.configfiles.folder.FolderConfigFileAction.doShow(FolderConfigFileAction.java:161)
      	at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:710)
      	at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:393)
      	at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:405)
      	at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:208)
      	at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:141)
      	at org.kohsuke.stapler.MetaClass$11.doDispatch(MetaClass.java:536)
      	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
      	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:766)
      

            Unassigned Unassigned
            markewaite Mark Waite
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: