Serializable
Thrown when an application attempts to use
null
in a case where an object is required. These include:
null
object.null
object.null
as if it were an array.null
as if it were an array.null
as if it were a Throwable
value.Applications should throw instances of this class to indicate other illegal uses of the null
object. NullPointerException
objects may be constructed by the virtual machine as if suppression were disabled and/or the stack trace was not writable.
Constructors
Constructs a NullPointerException
with no detail message.
Constructs a NullPointerException
with the specified detail message.
Returns the detail message string of this throwable.
Methods declared in class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public NullPointerException()
Constructs a NullPointerException
with no detail message.
Constructs a NullPointerException
with the specified detail message.
s
- the detail message.
If a non-null message was supplied in a constructor it is returned. Otherwise, an implementation specific message or null
is returned.
getMessage
in class Throwable
null
.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4