Uploaded image for project: 'Ivy'
  1. Ivy
  2. IVY-234

NullPointerException when the creation of Ivy file in cache fails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.3.1
    • 1.4-RC1
    • Core
    • None

    Description

      Hi,

      If the creation of the Ivy file in the cache fails for a module without an Ivy file, a NullPointerException is thrown (caused because ivyRef == null).
      This patch fixes this:

      — C:\java\ivy-20060426192557\src\java\fr\jayasoft\ivy\resolver\BasicResolver.java.orig Wed Apr 26 19:28:54 2006
      +++ C:\java\ivy-20060426192557\src\java\fr\jayasoft\ivy\resolver\BasicResolver.java Thu Apr 27 15:05:52 2006
      @@ -384,7 +384,11 @@
      }
      }
      } catch (Exception e) {
      + if (ivyRef == null)

      { + Message.warn("impossible to create ivy file in cache for module : " + resolvedMrid); + }

      else

      { Message.warn("impossible to copy ivy file to cache : "+ivyRef.getResource()); + }

      }

      data.getIvy().saveResolver(data.getCache(), systemMd, getName());

      Attachments

        Activity

          People

            xavier Xavier Hanin
            maartenc Maarten Coene
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: