[Solved] null pointer exception in java servlet [closed]
[ad_1] I got a “null pointer exception” fault in java servlet. Could someone tell me what happens? And how to avoid that? That happens when you’re trying to access/invoke some reference which is actually null. SomeObject someObject = null; someObject.doSomething(); // Throws NullPointerException. You need to make sure that you only access/invoke it when it … Read more