Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-120

NullPointer when calling a java.util.Arrays.asList()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0-beta-3
    • 1.0-beta-3
    • None
    • None

    Description

      a = [].toArray();

      System.out.println(java.util.Arrays.asList(a));

      Gives the following error...

      Caught: java.lang.NullPointerException: Cannot get property: util on null object
      java.lang.NullPointerException: Cannot get property: util on null object
      at org.codehaus.groovy.runtime.Invoker.getProperty(Invoker.java:424)
      at org.codehaus.groovy.runtime.InvokerHelper.getProperty(InvokerHelper.j ava:135)
      at blah.run(blah.groovy:1)

      Attachments

        Activity

          People

            Unassigned Unassigned
            yuri Yuri Schimke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: