Code example for NullPointerException

0
		setStatus(SkinType.MORRENDO); 
	} 
 
	public Bitmap getBitmap() {
		if(skin[status] == null)
			throw new NullPointerException("skin eh nulo");
		return skin[status];
	} 
 
	public void setStatus(int i) {
		status = i;
	} 
 
	public int getStatus() { 
		return status;
	} 
 
	public void setPosY(int i) {
		y = i;
	} 
Connect your IDE to all the code out there  Get Codota for Java