with the setting from my previous mail.
Exception in thread "main" java.lang.NullPointerException: Cannot invoke
"com.mycompany.add2strjop.Employee.getEmpName()" because* "arr[i]" is null*
at com.mycompany.add2strjop.Add2StrJOp.showRecords(Add2StrJOp.java:84)
at com.mycompany.add2strjop.Add2StrJOp.
You declare an array 0f 10 elements, but fill only three. The 4th element
(at position 3) is still null, that is where you get you null pointer.
Maybe it is a good time to:
1. switch to java 17 which has better error messages for null pointers when
you start it with -XX:+ShowCodeDetailsInExceptio
hmmm Interesting... I wonder if we could replicate this in swing and the
openjdk?
On 7/3/22 16:04, Marco Penitenti wrote:
Hello,
I'm new to the list I've seen there is no FAQ or info configured, so I
hope doing just fine writing here.
I've encounter a weird situation and solved it and I tho