FileDocCategorySizeDatePackage
NullPointerException.javaAPI DocAndroid 1.5 API1918Wed May 06 22:41:04 BST 2009java.lang

NullPointerException

public class NullPointerException extends RuntimeException
Thrown when a program tries to access a field or method of an object or an element of an array when there is no instance or array to use, that is if the object or array points to {@code null}. It also occurs in some other, less obvious circumstances, like a {@code throw e} statement where the {@link Throwable} reference is {@code null}.
since
Android 1.0

Fields Summary
private static final long
serialVersionUID
Constructors Summary
public NullPointerException()
Constructs a new {@code NullPointerException} that includes the current stack trace.

since
Android 1.0


                        
      
        super();
    
public NullPointerException(String detailMessage)
Constructs a new {@code NullPointerException} with the current stack trace and the specified detail message.

param
detailMessage the detail message for this exception.
since
Android 1.0

        super(detailMessage);
    
Methods Summary