We have a more than 3 Year old code which was working fine until now.
As per comments adding the simulated code , which is causing the null pointer exception.
public class TestMain {
public static void main(String[] args) throws Exception{
//List<MTMStagingRequest> request=init();
List<String> names = new ArrayList<>();
names = null;
if(names != null){ // It throws NullPointerException
System.out.println("He he");
}else{
System.out.println("No No");
}
}
Any Help appreciated.