java.lang.NullPointerException

Jenkins JIRA | Sébastien Heurtematte | 5 years ago
  1. 0

    In the project configuration of a job, when you don't select Mantis Project and/or Category. and choose to activate the option : "File a ticket to Mantis" a NullPointerException is thrown java.lang.NullPointerException at hudson.plugins.mantis.soap.mantis120.MantisSessionImpl.addIssue(MantisSessionImpl.java:134) at hudson.plugins.mantis.MantisSite.addIssue(MantisSite.java:173) at hudson.plugins.mantis.MantisIssueRegister.perform(MantisIssueRegister.java:74) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:703) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:678) at hudson.ivy.IvyModuleSetBuild$RunnerImpl.post2(IvyModuleSetBuild.java:587) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:625) at hudson.model.Run.run(Run.java:1435) at hudson.ivy.IvyModuleSetBuild.run(IvyModuleSetBuild.java:282) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238) The problem become from the class : MantisIssueRegister.createIssue Where this test exist : if (projectId == MantisProject.NONE || MantisCategory.None.equals(categoryName)) { return null; } Is it possible to have just a log message maybe first. And after, a required field on project configuration and the ability to have category field : not selected if there is no impact on the rest of the plugin.

    Jenkins JIRA | 5 years ago | Sébastien Heurtematte
    java.lang.NullPointerException
  2. 0

    In the project configuration of a job, when you don't select Mantis Project and/or Category. and choose to activate the option : "File a ticket to Mantis" a NullPointerException is thrown java.lang.NullPointerException at hudson.plugins.mantis.soap.mantis120.MantisSessionImpl.addIssue(MantisSessionImpl.java:134) at hudson.plugins.mantis.MantisSite.addIssue(MantisSite.java:173) at hudson.plugins.mantis.MantisIssueRegister.perform(MantisIssueRegister.java:74) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:703) at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:678) at hudson.ivy.IvyModuleSetBuild$RunnerImpl.post2(IvyModuleSetBuild.java:587) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:625) at hudson.model.Run.run(Run.java:1435) at hudson.ivy.IvyModuleSetBuild.run(IvyModuleSetBuild.java:282) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238) The problem become from the class : MantisIssueRegister.createIssue Where this test exist : if (projectId == MantisProject.NONE || MantisCategory.None.equals(categoryName)) { return null; } Is it possible to have just a log message maybe first. And after, a required field on project configuration and the ability to have category field : not selected if there is no impact on the rest of the plugin.

    Jenkins JIRA | 5 years ago | Sébastien Heurtematte
    java.lang.NullPointerException
  3. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at hudson.plugins.mantis.soap.mantis120.MantisSessionImpl.addIssue()
    2. hudson.plugins.mantis
      MantisIssueRegister.perform
      1. hudson.plugins.mantis.soap.mantis120.MantisSessionImpl.addIssue(MantisSessionImpl.java:134)
      2. hudson.plugins.mantis.MantisSite.addIssue(MantisSite.java:173)
      3. hudson.plugins.mantis.MantisIssueRegister.perform(MantisIssueRegister.java:74)
      3 frames
    3. Hudson
      AbstractBuild$AbstractRunner.performAllBuildSteps
      1. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      2. hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:703)
      3. hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:678)
      3 frames
    4. hudson.ivy
      IvyModuleSetBuild$RunnerImpl.post2
      1. hudson.ivy.IvyModuleSetBuild$RunnerImpl.post2(IvyModuleSetBuild.java:587)
      1 frame
    5. Hudson
      Run.run
      1. hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:625)
      2. hudson.model.Run.run(Run.java:1435)
      2 frames
    6. hudson.ivy
      IvyModuleSetBuild.run
      1. hudson.ivy.IvyModuleSetBuild.run(IvyModuleSetBuild.java:282)
      1 frame
    7. Hudson
      Executor.run
      1. hudson.model.ResourceController.execute(ResourceController.java:88)
      2. hudson.model.Executor.run(Executor.java:238)
      2 frames