**java.lang** ====Class NullPointerException ==== *[[javacard:java-card-api:object|java.lang.Object]] \\ *[[javacard:java-card-api:throwable|java.lang.Throwable]] \\ *[[javacard:java-card-api:exception|java.lang.Exception]] \\ *[[javacard:java-card-api:runtimeexception|java.lang.RuntimeException]] \\ ---- public class **NullPointerException**extends [[javacard:java-card-api:RuntimeException|RuntimeException]] A Java Card runtime environment-owned instance of NullPointerException is thrown when an applet attempts to use null in a case where an object is required. These include: \\ *Calling the instance method of a null object. \\ *Accessing or modifying the field of a null object. \\ *Taking the length of null as if it were an array. \\ *Accessing or modifying the slots of null as if it were an array. \\ *Throwing null as if it were a Throwable value. \\ Java Card runtime environment-owned instances of exception classes are temporary Java Card runtime environment Entry Point Objects and can be accessed from any applet context. References to these temporary objects cannot be stored in class variables or instance variables or array components. See //Runtime Environment Specification for the Java Card Platform//, section 6.2.1 for details. This Java Card platform class's functionality is a strict subset of the definition in the //JavaTM 2 Platform Standard Edition (J2SETM) API Specification//. ---- ^ Constructor Summary ^^ | **[[javacard:java-card-api:NullPointerException#NullPointerException()|NullPointerException]] **()          Constructs a NullPointerException. |   ^ Method Summary ^^   ^ Methods inherited from class java.lang.Object ^ | [[javacard:java-card-api:Object#equals(java.lang.Object)|equals]] |   ^ Constructor Detail ^ === NullPointerException === public **NullPointerException**() Constructs a NullPointerException.