Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPE in AbstractPartialFunction.orElse #5300

Closed
scabug opened this issue Dec 13, 2011 · 3 comments
Closed

NPE in AbstractPartialFunction.orElse #5300

scabug opened this issue Dec 13, 2011 · 3 comments
Assignees
Milestone

Comments

@scabug
Copy link

scabug commented Dec 13, 2011

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)
...
@scabug
Copy link
Author

scabug commented Dec 13, 2011

Imported From: https://issues.scala-lang.org/browse/SI-5300?orig=1
Reporter: Tobias Stenzel (tobistenzel)
Affected Versions: 2.10.0

@scabug
Copy link
Author

scabug commented Jan 9, 2012

Trond Olsen (tolsen77) said (edited on Jan 9, 2012 1:17:14 AM UTC):
I also stumbled upon this issue. Some details in a scala-users post. Tried to replicate the problem in a reduced case without success.

@scabug
Copy link
Author

scabug commented Jan 9, 2012

@paulp said:
af4a529929

@scabug scabug closed this as completed Jan 9, 2012
@scabug scabug added this to the 2.10.0 milestone Apr 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants