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

creating build.xml status file fails for projects containing jdepend due to a null pointer

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • core
    • None
    • hudson 1.383, jdk 1.6.21, windows xp

      When the jdepend plugin is used, creating the build.xml file in each builds directory fails due to a null pointer.
      This is caused by a small bug in the xstream implementation, when a class contains a Stack or Vector object, the unused null elements in the object causes a null pointer that breaks creation of the xml file.

      I have written a test to check the error and fixed the method, I will attach the patch.

          [JENKINS-8006] creating build.xml status file fails for projects containing jdepend due to a null pointer

          Alex Lehmann added a comment -

          fix and test for the bug.

          this diff is based on the head version r36645 I check out earlier today (not changed from 1.383 though)

          Alex Lehmann added a comment - fix and test for the bug. this diff is based on the head version r36645 I check out earlier today (not changed from 1.383 though)

          Alex Lehmann added a comment - - edited

          I should mention that I have absolutely no experience with junit tests, the test is probably too verbose.

          Alex Lehmann added a comment - - edited I should mention that I have absolutely no experience with junit tests, the test is probably too verbose.

          Code changed in hudson
          User: : mindless
          Path:
          trunk/hudson/main/core/src/main/java/hudson/util/XStream2.java
          trunk/hudson/main/core/src/test/java/hudson/util/XStream2Test.java
          trunk/www/changelog.html
          http://jenkins-ci.org/commit/36992
          Log:
          [FIXED JENKINS-8006] fix serialization of array containing null elements,
          based on patch from alexlehm

          SCM/JIRA link daemon added a comment - Code changed in hudson User: : mindless Path: trunk/hudson/main/core/src/main/java/hudson/util/XStream2.java trunk/hudson/main/core/src/test/java/hudson/util/XStream2Test.java trunk/www/changelog.html http://jenkins-ci.org/commit/36992 Log: [FIXED JENKINS-8006] fix serialization of array containing null elements, based on patch from alexlehm

            mindless Alan Harder
            alexlehm Alex Lehmann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: