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

Notify-error: java.lang.NullPointerException: Cannot invoke "java.util.Collection.toArray()" because "c" is null

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Blocker Blocker
    • gerrit-trigger-plugin
    • None
    • Gerrit Trigger Version 2.42.0
      Jenkins 2.462.1
      Gerrit 3.9.5

      Seeing this error in Jenkins log when Gerrit patchset is created. We have been using Gerrit & Jenkins with gerrit-trigger for a long time, but now testing upgrade to Gerrit 3.9.5 from 3.7.6 and also upgraded Jenkins gerrit-trigger plugin from 2.40.0.

      2024-12-12 15:48:49.712+0000 [id=4142] SEVERE c.s.t.g.g.GerritHandler#notifyListeners: When notifying listener: com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.EventListener@b0fcb3da about event: PatchsetCreated: Change-Id for #151678: I5279e3bab326da008c52c0cfd820fe01405719d1 PatchSet: 4
      2024-12-12 15:48:49.712+0000 [id=4142] SEVERE c.s.t.g.g.GerritHandler#notifyListeners: Notify-error:
      java.lang.NullPointerException: Cannot invoke "java.util.Collection.toArray()" because "c" is null
      at java.base/java.util.ArrayList.<init>(ArrayList.java:181)
      at PluginClassLoader for gerrit-trigger//com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.GerritProject.isInterestingFile(GerritProject.java:337)
      at PluginClassLoader for gerrit-trigger//com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.data.GerritProject.isInteresting(GerritProject.java:278)
      at PluginClassLoader for gerrit-trigger//com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTrigger.isChangeInteresting(GerritTrigger.java:956)
      at PluginClassLoader for gerrit-trigger//com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTrigger.isChangeBasedEventInteresting(GerritTrigger.java:1049)
      at PluginClassLoader for gerrit-trigger//com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTrigger.isInteresting(GerritTrigger.java:1165)
      at PluginClassLoader for gerrit-trigger//com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.EventListener.gerritEvent(EventListener.java:128)
      at PluginClassLoader for gerrit-trigger//com.sonymobile.tools.gerrit.gerritevents.GerritHandler.notifyListener(GerritHandler.java:592)
      at PluginClassLoader for gerrit-trigger//com.sonymobile.tools.gerrit.gerritevents.GerritHandler.notifyListeners(GerritHandler.java:559)
      at PluginClassLoader for gerrit-trigger//com.sonyericsson.hudson.plugins.gerrit.trigger.JenkinsAwareGerritHandler.notifyListeners(JenkinsAwareGerritHandler.java:80)
      at PluginClassLoader for gerrit-trigger//com.sonymobile.tools.gerrit.gerritevents.workers.AbstractGerritEventWork.perform(AbstractGerritEventWork.java:46)
      at PluginClassLoader for gerrit-trigger//com.sonymobile.tools.gerrit.gerritevents.workers.AbstractJsonObjectWork.perform(AbstractJsonObjectWork.java:77)
      at PluginClassLoader for gerrit-trigger//com.sonymobile.tools.gerrit.gerritevents.workers.StreamEventsStringWork.perform(StreamEventsStringWork.java:74)
      at PluginClassLoader for gerrit-trigger//com.sonymobile.tools.gerrit.gerritevents.GerritHandler$EventWorker.workEvent(GerritHandler.java:337)
      at PluginClassLoader for gerrit-trigger//com.sonymobile.tools.gerrit.gerritevents.GerritHandler$EventWorker.run(GerritHandler.java:319)
      at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
      at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
      at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
      at java.base/java.lang.Thread.run(Thread.java:842)
      

            rsandell rsandell
            jimsearle Jim Searle
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: