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;
	} 
} 
 
 
Stop searching for code, let great code find you!  Add Codota to your java IDE