So I've been working on my largest project yet, and I've found that a lot of my objects have fields that can be null. Because of this, I'm having to do something like this for every single instance:
if(box1 != null)
box1.draw();
This doesn't seem too bad, but when you have to do that like 8 times, it makes the code seem cluttered. I feel like there could be a simpler way to do this.