posted 6 years ago
When you develop your own code, you create your own objects and use them where appropriate. All of a sudden I have a NullPointerException in my code. I know that NullPointerException.equals(DeveloperError). But in my logging I see contents of that same object displayed. The only thing I notice is that the object in my Eclipse listing first has blue characters. I can ask that object to display its contents. A few lines later my object has blue characters, and when I ask the object for one field, I get the NullPointerException.
Can anyone tell me the importance of the colour change of the object in Eclipse? And probably the solution of my problem?
Some code:
Some logging:
Junior Software Engineer, Senior appearance