Code example for NullPointerException

0
 
	} 
 
	public Bitmap getBitmap() {
		if(skin == null)
			throw new NullPointerException("skin eh nulo");
		return skin;
	} 
 
	public void setStatus(int i) {
		status = i;
	} 
 
	public int getStatus() { 
		return status;
	} 
} 
 
 
Contextual code suggestions in your IDE  Get Codota for Java