I was trying to run a program but kept getting the error, NullPointerException. I simplified my code down to as simple as can be to see if I could figure out what the problem was but it still eludes me. I usually like to figure things out on my own but this is driving me crazy. Can any of you see the issue? The error appears in line which reads: " rect(b.i, b.j, 100, 100); " inside the drawBox function.