I'm actually not using an IDE, I just use Notepad++ for the syntax highlighting and then compile using cmd.
Does the NPE occur on the line where you call the getName-method on the subcontractor instance? Or does the NPE occurs in the getName method itself ? And what happens if you put a call to the getName() method in the toString() implementation?
Pieter Jacobs wrote:Concerning your question regarding "transient" - yes, I have only used "transient" for the Logger.
Pieter Jacobs wrote:didn't think for a moment that the issue is in Subcontractor