/* package whatever; // don't place package name! */
import java.util.stream.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
public static void main
(String[] args
) {
try {
IntStream.range(1, 10).filter(null);
System.
out.
println("We got a NullPointerException as null was passed as an argument to filter()"); }
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC5zdHJlYW0uKjsKCgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKQoJewoJCXRyeSB7CiAgICAJCUludFN0cmVhbS5yYW5nZSgxLCAxMCkuZmlsdGVyKG51bGwpOwoJCX0gY2F0Y2ggKE51bGxQb2ludGVyRXhjZXB0aW9uIGUpIHsKCQkgICAgU3lzdGVtLm91dC5wcmludGxuKCJXZSBnb3QgYSBOdWxsUG9pbnRlckV4Y2VwdGlvbiBhcyBudWxsIHdhcyBwYXNzZWQgYXMgYW4gYXJndW1lbnQgdG8gZmlsdGVyKCkiKTsKCQl9Cgl9Cn0=