Created
November 7, 2017 22:16
-
-
Save mcupak/e288925744383ae3e03e9fd5ceef46e0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| jshell> Stream.of(null) | |
| | Warning: | |
| | non-varargs call of varargs method with inexact argument type for last parameter; | |
| | cast to java.lang.Object for a varargs call | |
| | cast to java.lang.Object[] for a non-varargs call and to suppress this warning | |
| | Stream.of(null) | |
| | ^--^ | |
| | java.lang.NullPointerException thrown: | |
| | at Arrays.stream (Arrays.java:5610) | |
| | at Stream.of (Stream.java:1187) | |
| | at (#2:1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment