Details

      Description

      Affected Scala Version: 2.10.0.rdev-4005-2011-12-13-g278a225 (current master)

      orElse called on a simple partial function like:

       
      val pf: PartialFunction[Any, Unit] = { case _ => }
      pf orElse pf
      

      throws a NPE:

      java.lang.NullPointerException
              at scala.runtime.AbstractPartialFunction.orElse(AbstractPartialFunction.scala:41)
      ...
      

        Activity

        Hide
        Trond Olsen added a comment - - edited

        I also stumbled upon this issue. Some details in a scala-users post. Tried to replicate the problem in a reduced case without success.

        Show
        Trond Olsen added a comment - - edited I also stumbled upon this issue. Some details in a scala-users post . Tried to replicate the problem in a reduced case without success.
        Hide
        Paul Phillips added a comment -

        af4a529929

        Show
        Paul Phillips added a comment - af4a529929

          People

          • Assignee:
            Paul Phillips
            Reporter:
            Tobias Stenzel
          • Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development