p0y wrote:Do you actually understand when this exception would occur? If would occur if you access or invoke an object reference which is actually null.
It gives me an error of NullPointerException.
Read the stacktrace of the exception, find the line where this is been thrown and fix the code accordingly.
SomeObject someObject = null; someObject.doSomething(); // Throws NPE.