I have yet another problem with the code I posted earlier in the
thread titled "Strange Compiler Error." I sized my array from... whatever large number it had been earlier down to 50 because no one will actually be using it. Now the stack is happy isn't trying to load up with empty slots in an array, but I'm getting a NullPointerException in runtime. I think there is some bug in the initialization of a User object inside createAccount(), or one in saveUser(). Here is the error:
Exception in thread "main" java.lang.NullPointerException
at AccountStuff.saveUser(AccountStuff.java:74)
at AccountStuff.createAccount(AccountStuff.java:66)
at AccountStuff.createAccountDll(AccountStuff.java:37)
at AccountStuff.logIn(AccountStuff.java:24)
at AccountStuff.main(AccountStuff.java:12)
And here is the code:
I'll be very grateful if someon can figure this out. Thanks in advance!