This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
A NullPointerException is "thrown when an application attempts to use null in a case where an object is required" not when comparing two strings that are different. In your example, plaat must not have been properly initialized, as it is null. [ June 04, 2002: Message edited by: Dirk Schreckmann ]
Patrick Muls writes: Dirk, Thank you for replying to my posting. As it turned out, after I installed JCreator Pro and debugged the problem, neither plaat nor plateNo were null, as shown in the output, but in the method vervangRecord() another variable was still null. But because I didn�t see the 2 println that came before this method, I didn�t look that far.
Joined: Dec 10, 2001
That's great that you figured this one out. I've posted your email here so that others might learn a thing or two from your experience. Hope to see you 'round the Ranch!