Whose Error Is It?

Java printed this

Exception in thread "main" java.lang.NullPointerException
What it meansThe program used a reference that points to null, such as calling a method or reading a field on an object that was never assigned.
The first thing to checkRead the first stack frame in your own code to find the null variable; check uninitialized fields, missing map entries, or methods returning null.

More from Java

All 75 errors

Whose Error Is It? · Status Menu · Back to the bar