Nullpointer Exception on null check statement

Viewed 40

How is the null check statement below throwing a Nullpointer Exception? Is the request perhaps null? I'm confused Somebody help.

if(!getTGTid(request).equalsIgnoreCase(null) || 
!getTGTid(request).equalsIgnoreCase("")) {

Method

private String getTGTid(HttpServletRequest request) {
return request.getParameter("tgtId"); 
}
1 Answers
Related