abdera-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Varadharajan Sethuraman <vara...@ymail.com>
Subject Null Pointer exception while adding header
Date Fri, 18 Dec 2009 17:30:05 GMT
Hi,

here is my code snippet
-------------------------------------

            if (options.getHeader("Set-Cookie") == null ) { 
                options.setHeader("Set-Cookie", "JSESSIONID="+jsessionid);                                

            }else { 
                options.addHeader("Set-Cookie", "JSESSIONID="+jsessionid);                                

            } 
            if (options.getHeader("Set-Cookie") == null ) { 
                options.setHeader("Set-Cookie", "LtpaToken2="+LtpaToken2);                                

            }else { 
                options.addHeader("Set-Cookie", "LtpaToken2"+LtpaToken2);                                

            } 
            if (options.getHeader("Set-Cookie") == null ) { 
                options.setHeader("Set-Cookie", "LtpaToken="+LtpaToken);                                

            }else { 
                options.addHeader("Set-Cookie", "LtpaToken="+LtpaToken);                                

            } 

I am getting an null pointer exception when addHeader being called.

could you please provide me the work around for this issue?

Regards
Rajan




      
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message