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

Inconsistent behaviour of &,|, || and && operators - NPE with & and |

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 2.1.7
    • None
    • None
    • None

    Description

      true && null -> false
      false || null -> false

      true & null -> NPE at org.codehaus.groovy.runtime.DefaultGroovyMethods.and(DefaultGroovyMethods.java:11544)
      false | null -> NPE at at org.codehaus.groovy.runtime.DefaultGroovyMethods.or(DefaultGroovyMethods.java:11556)

      Attachments

        Issue Links

          Activity

            People

              jimwhite James P. White
              mgryszko Marcin Gryszko
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: